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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DynaPDF.ExtractPageRectText

Extracts the text of the page in a rectangle.

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

MBS( "DynaPDF.ExtractPageRectText"; PDF; pageIndex; RectLeft; RectTop; RectRight; RectBottom )

Parameters

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
RectLeft Left coordinate of the rectangle to search. 0
RectTop Top coordinate of the rectangle to search. 0
RectRight Right coordinate of the rectangle to search. 595
RectBottom Bottom coordinate of the rectangle to search. 842

Result

Returns the text or error message.

Description

Extracts the text of the page in a rectangle.
Use DynaPDF.ExtractPageText is you need text from whole page.
Text that starts within the given rectangle is captured.
Be aware that PDF coordinates start on bottom left of page with 0/0.

Examples

Takes text only from top rectangle:

MBS("DynaPDF.ExtractPageRectText"; $pdf; $PageIndex; 0; 695; 595; 842)

Takes text only from left column:

MBS("DynaPDF.ExtractPageRectText"; $pdf; $PageIndex; 0; 0; 295; 842)

Takes text only from right column:

MBS("DynaPDF.ExtractPageRectText"; $pdf; $PageIndex; 295; 0; 595; 842)

See also


DynaPDF.ExtractImages   -   DynaPDF.ExtractPageText

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins