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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Creates a Highlight annotation.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 5.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
SubType | The subtype of annotation. Allowed values are Highlight, Squiggly, StrikeOut, or Underline. |
"Highlight" |
PosX | X-coordinate of the annotation | 100 |
PosY | Y-coordinate of the annotation | 100 |
Width | Width of the annotation | 100 |
Height | Height of the annotation | 100 |
HighlightColor | Highlight color. | 200 |
Author | The author name. Can be empty. | "Christian Schmitz" |
Subject | The subject to use. Can be empty. | |
Comment | The comment. Can be empty. |
Returns annotation handle or error.
See also HighlightAnnot function in DynaPDF manual.
Add a highlight annotation to page 3:
Set Variable [ $r ; Value: MBS("DynaPDF.EditPage"; $pdf; 3) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.HighlightAnnot"; $pdf; "Highlight"; 100; 100; 300; 200; MBS( "DynaPDF.RGB"; 200; 100; 100 )) ]
Set Variable [ $r ; Value: MBS("DynaPDF.EndPage"; $pdf) ]
This function checks for a license.
Created 28th November 2014, last changed 21st August 2021