Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

PDFKit.GetPDFPageText

Queries the text of a page in a PDF document.

Component Version macOS Windows Linux Server iOS SDK
PDFKit 2.1 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "PDFKit.GetPDFPageText"; PDF; index )   More

Parameters

Parameter Description Example
PDF A container value with the PDF content from a media field. Or a text with an URL. Or a PDF reference from PDFKit.Open.
index The index of the page. From zero to PDFKit.GetPDFPageCount-1. 5

Result

The text of the PDF page as far as PDFKit knows it.

Description

Queries the text of a page in a PDF document.
If you need text from all pages, please use PDFKit.GetPDFText.

For solutions on Windows, Linux or iOS, please use DynaPDF.ExtractPageText.
You may need to use Text.ConvertUnicodeToCharacterComposition if text is coming back in decomposed unicode characters.

Examples

Extract text of page 6 in this PDF

MBS( "PDFKit.GetPDFPageText"; $ref; 5 )

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 16th January 2017


PDFKit.GetPDFPageRotation - PDFKit.GetPDFPageValue

Feedback: Report problem or ask question.