Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 556

Previous Page 555   Index   Next Page 557

Function Reference
Page 556 of 750
PolygonAnnot
Syntax:
SI32 pdfPolygonAnnot(
const PPDF* IPDF,
// Instance pointer
struct TFltPoint* Vertices, // At least two vertices must be provided
UI32 NumVertices,
// Number of vertices in the array
double LineWidth,
// Line width
UI32 FillColor,
// Fill color or NO_COLOR = transparent
UI32 StrokeColor,
// Stroke color or NO_COLOR = transparent
TPDFColorSpace CS,
// Color space of the color values
const char* Author,
// Optional author
const char* Subject,
// Optional subject
const char* Content)
// Optional content or comment
The function creates a Polygon Annotation. The vertices are connected by straight lines. The path is
always closed before it will be drawn. It is not required to close the path explicitly. At least two
vertices must be provided.
The coordinates of the vertices are interpreted in current user space. Any transformation that was
applied on the coordinate system will be taken into account.
The stroke or fill color can be set to the special constant NO_COLOR to fill or stroke the polygon. It is
not allowed to set both colors to NO_COLOR since this would result in an invisible annotation.
This annotation type has an associated PopUp annotation that displays the string Content in a
floating window. The initial window state of the associated PopUp annotation is closed by default
but the state can be changed with SetAnnotOpenState() if necessary.
Remarks:
This function is implemented in an Ansi and Unicode compatible version.
Return values:
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
PolyLineAnnot
Syntax:
SI32 pdfPolyLineAnnot(
const PPDF* IPDF,
// Instance pointer
struct TFltPoint* Vertices, // At least two vertices must be provided
UI32 NumVertices,
// Number of vertices in the array
double LineWidth,
// Line width
TLineEndStyle Start,
// Line end style of the start point
TLineEndStyle End,
// Line end style of the end point
UI32 FillColor,
// Fill color or NO_COLOR = transparent
UI32 StrokeColor,
// Stroke color or NO_COLOR = transparent
TPDFColorSpace CS,
// Color space of the color values
 

Previous topic: PlaceTemplByMatrix

Next topic: PrintPDFFile