Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Searches a text and returns position details.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.1 Yes Yes Yes Yes Yes
MBS( "DynaPDF.FindText"; PDF; Text { ; CaseInsensitive } )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Text The text to search. "Hello"
CaseInsensitive Optional
Optional, if 1, the case of the letters is ignored (also umlauts).


Returns list of found positions.


Searches a text and returns position details.
You need to have an open page. you can use DynaPDF.EditPage to edit an existing one.
The list of returned coordinates contains a rectangle for each found position defined by 4 coordinates. The coordinates (x1 y1 x2 y2 x3 y3 x4 y4) define the surrounding rectangle of the text area.

This function uses the parser interface in DynaPDF and needs a Lite license.


Highlight "Apple" with yellow:

MBS( "DynaPDF.FindText"; $PDF; "Apple"; 1 )

Example result: "96.001800 662.040000 168.307802 662.040000 168.307802 676.080000 96.001800 676.080000"

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 19th March 2019

DynaPDF.FindPattern   -   DynaPDF.FlattenAnnots

Feedback: Report problem or ask question.

MBS FileMaker blog