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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.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) ]
Created 28th November 2014, last changed 21st August 2021
DynaPDF.HaveOpenPage - DynaPDF.HighlightPattern
Feedback: Report problem or ask question.