Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.ExtractPageText
Extracts the text of the page.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Deprecated
This function was deprecated. Use DynaPDF.ExtractText instead.
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
pageIndex | The number of the page. Must be within 1 and DynaPDF.GetPageCount. | 1 |
Result
Returns the text or error message.
Description
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 instead.
Needs DynaPDF Lite license.
Examples
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)]
#Cleanup
Set Variable [$r; Value:MBS("DynaPDF.Release"; $pdf)]
See also
- DynaPDF.ExtractDocumentText
- DynaPDF.ExtractImages
- DynaPDF.ExtractText
- DynaPDF.GetPageCount
- DynaPDF.ImportPDFFile
- DynaPDF.New
- DynaPDF.OpenPDFFromContainer
- DynaPDF.OpenPDFFromFile
- OCR.SetImage
- PDFKit.GetPDFPageText
Release notes
- Version 13.0
- Deprecated DynaPDF.ExtractPageRectText and DynaPDF.ExtractPageText functions in favor of DynaPDF.ExtractText function.
- Version 10.1
- Fixed a problem with recursive templates in DynaPDF.ExtractDocumentText, DynaPDF.ExtractPageRectText and DynaPDF.ExtractPageText functions.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 12.6pr1
- MBS FileMaker Plugin, version 10.1pr5
- MBS FileMaker Plugin 6.0 for OS X/Windows
- Introducing DynaPDF to MBS Filemaker Plugin
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 10th November 2022