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.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

DynaPDF.HighlightPattern

Searches a text and adds highlights for it.

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

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Text The text to search. "Hello"
HighlightColor Optional
The highlight color. Default is yellow. Value is the RGB color as integer. Blue*65536+Green*256+Red with each color channel having a range from 0 to 255.
MBS( "DynaPDF.RGB"; 0; 0; 255 )
CaseInsensitive Optional
Optional, if 1, the case of the letters is ignored (also umlauts).
1

Result

Returns number of locations found.

Description

Searches a text and adds highlights for it.
You need to have an open page. you can use DynaPDF.EditPage to edit an existing one.
You can use DynaPDF.RGB function to calculate RGB color value.

Needs DynaPDF Lite license.

Examples

Highlight "Apple" with yellow:

MBS( "DynaPDF.HighlightPattern"; $PDF; "Apple"; MBS( "DynaPDF.RGB"; 0; 255; 255 ); 1 )

Same, but with color calculated ourself:

MBS("DynaPDF.HighlightPattern"; $pdf; "Apple"; 255+255*256; 1)

See also

Example Databases

Created 18th August 2014, last changed 14th October 2018


DynaPDF.HighlightAnnot   -   DynaPDF.ImportEncryptionSettings

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins