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:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
DynaPDF.HighlightAnnot
Creates a Highlight annotation.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
DynaPDF
|
5.0 |
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
MBS( "DynaPDF.HighlightAnnot"; PDF; PosX; PosY; Width; Height; HighlightColor; Author; Subject; Comment )
More
MBS(
"DynaPDF.HighlightAnnot"; /* Creates a Highlight annotation. */
$PDF; /* The PDF reference returned from
DynaPDF.New. */
$PosX; /* X-coordinate of the annotatione.g. 100 */
$PosY; /* Y-coordinate of the annotatione.g. 100 */
$Width; /* Width of the annotatione.g. 100 */
$Height; /* Height of the annotatione.g. 100 */
$HighlightColor; /* Highlight color.e.g. 200 */
$Author; /* The author name. Can be empty.e.g. "Christian Schmitz" */
$Subject; /* The subject to use. Can be empty. */
$Comment) /* The comment. Can be empty. */
Less
Parameters
Parameter |
Description |
Example |
PDF |
The PDF reference returned from DynaPDF.New. |
$pdf |
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. |
|
Result
Returns annotation handle or error.
Description
Creates a Highlight annotation.
Highlight annotations are used to mark text on a PDF page.
If the coordinate system is bottom-up the point PosX, PosY defines the lower left corner of the bounding rectangle. If the coordinate system is top-down it defines the upper left corner.
The parameter Color specifies the highlight color; it must be defined in RGB color space. The line width of a Strikout or Underline annotation is not adjustable. The line width depends on the size of the annotation and is automatically calculated.
The active color space must be set to DeviceRGB before creating the annotation. See DynaPDF.SetColorSpace for further information.
See also HighlightAnnot function in DynaPDF manual.
See also
Created 28th November 2014, last changed 30th November 2014
DynaPDF.HaveOpenPage
-
DynaPDF.HighlightPattern
Feedback: Report problem or ask question.