/// Returns the collection of text boxes contained within this [PdfPage].
Returns the collection of text boxes contained within this [PdfPage].
Returns the collection of text boxes contained within this [ PdfPage ] .
pub fn text(&self) -> Result<PdfPageText, PdfiumError> {
        let text_handle = self.bindings.FPDFText_LoadPage(self.handle);
        if text_handle.is_null() {
            if let Some(error) = self.bindings.get_pdfium_last_error() {
                Err(PdfiumError::PdfiumLibraryInternalError(error))
            } else {
                // This would be an unusual situation; a null handle indicating failure,
                // yet pdfium's error code indicates success.
                Err(PdfiumError::PdfiumLibraryInternalError(
                    PdfiumInternalError::Unknown,
                ))
            }
        } else {
            Ok(PdfPageText::from_pdfium(text_handle, self, self.bindings))
        }
    }
pub fn text ( & self ) -> Result < PdfPageText , PdfiumError > { let text_handle = self . bindings . FPDFText_LoadPage ( self . handle ) ; if text_handle . is_null ( ) { if let Some ( error ) = self . bindings . get_pdfium_last_error ( ) { Err ( PdfiumError :: PdfiumLibraryInternalError ( error ) ) } else { // This would be an unusual situation; a null handle indicating failure, // yet pdfium's error code indicates success. Err ( PdfiumError :: PdfiumLibraryInternalError ( PdfiumInternalError :: Unknown , ) ) } } else { Ok ( PdfPageText :: from_pdfium ( text_handle , self , self . bindings ) ) } }
Returns the collection of text boxes contained within this [PdfPage].
Returns the collection of text boxes contained within this [ PdfPage ] .
&self