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
Draws a square annotation on the current open page.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 5.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
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 | |
LineWidth | Line width of the circle or ellipse | 2 | |
FillColor | Fill color for square. See DynaPDF.RGB function for RGB colors. |
200 | Optional |
StrokeColor | Stroke color for square. See DynaPDF.RGB function for RGB colors. |
255 | Optional |
ColorSpace | Color space of the fill and stroke colors. | "RGB" | Optional |
Author | The author name. Can be empty. | "Christian Schmitz" | Optional |
Subject | The subject to use. Can be empty. | Optional | |
Comment | The comment. Can be empty. | Optional |
Returns annotation handle or error.
See also SquareAnnot function in DynaPDF manual.
Add a rectangle annotation:
Set Variable [ $r ; Value: MBS("DynaPDF.EditPage"; $pdf;1) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.SquareAnnot"; /* Draws a square annotation on the current open page. */
$PDF; /* The PDF reference returned from DynaPDF.New. */
100; /* X-coordinate of the annotatione.g. 100 */
100; /* Y-coordinate of the annotatione.g. 100 */
300; /* Width of the annotatione.g. 100 */
200; /* Height of the annotatione.g. 100 */
5; /* Line width of the circle or ellipsee.g. 2 */
4294967281; /* Fill color for square.e.g. 200 */
MBS( "DynaPDF.RGB"; 255; 0; 0 ); /* Stroke color for square.e.g. 255 */
"RGB"; /* Color space of the fill and stroke colors.e.g. "RGB" */
"Christian Schmitz"; /* The author name. Can be empty. */
"Hello World"; /* The subject to use. Can be empty. */
"Just testing") /* The comment. Can be empty. */]
This function checks for a license.
Created 28th November 2014, last changed 17th July 2022