Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.HighlightPattern
Searches a text and adds highlights for it.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.HighlightPattern"; PDF; Text { ; HighlightColor; CaseInsensitive } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
Text | The text to search. | "Hello" | |
HighlightColor | 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 ) | Optional |
CaseInsensitive | Optional, if 1, the case of the letters is ignored (also umlauts). | 1 | Optional |
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.
This function uses the parser interface in DynaPDF and needs a 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
Release notes
- Version 7.4
- Changed DynaPDF.HighlightPattern to create highlight annotations instead of drawing rectangles.
- Version 7.3
- Fixed issue with DynaPDF.HighlightPattern function.
Example Databases
Blog Entries
- DynaPDF Screenshot
- Combine MBS functions to automate processes in FileMaker
- MBS FileMaker Plugin, version 7.4pr1
- MBS Filemaker Plugin, version 4.0pr5
- MBS FileMaker Plugin 3.5 for OS X/Windows - More than 2100 Functions In One Plugin
- MBS Filemaker Plugin, version 3.5pr10
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 19th March 2019
