Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Extracts the text of the page.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.0 Yes Yes Yes Yes Yes

MBS( "DynaPDF.ExtractPageText"; PDF; pageIndex )


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
pageIndex The number of the page. Must be within 1 and DynaPDF.GetPageCount. 1


Returns the text or error message.


Extracts the text of the page.
Use DynaPDF.ExtractDocumentText is you need text from whole document.

For Mac only solutions, you can also try PDFKit.GetPDFPageText.
Needs DynaPDF Lite license.


Queries page text of page 5:

$text = MBS( "DynaPDF.ExtractPageText"; $PDF; 5 )

Load PDF and extract text of page 2:

# initialize DynaPDF before running this:
Set Variable [$pdf; Value:MBS("DynaPDF.New")]
# load PDF from container
Set Variable [$r; Value:MBS("DynaPDF.OpenPDFFromContainer";$pdf; Test::data)]
# import all pages
Set Variable [$r; Value:MBS("DynaPDF.ImportPDFFile";$pdf)]
# extra text of page 2
Set Field [Test::PageText; MBS("DynaPDF.ExtractPageText"; $pdf; 2)]
Set Variable [$r; Value:MBS("DynaPDF.Release"; $pdf)]

See also

Example Databases

DynaPDF.ExtractPageRectText   -   DynaPDF.ExtractText

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins