DynaPDF Manual - Page 528
Previous Page 527 Index Next Page 529
Function Reference
Page 528 of 839
InkAnnot
Syntax:
SI32 pdfInkAnnot(
const PPDF* IPDF,
// Instance pointer
struct TFltPoint* Points, // Array of points
UI32 NumPoints,
// Number of points (must be greater 1)
double LineWidth,
// Line width
UI32 Color,
// Color
TPDFColorSpace CS,
// Color space in which Color is defined
const char* Author,
// Optional author
const char* Subject,
// Optional subject
const char* Content)
// Optional content
The function creates an Ink annotation. An ink annotation (PDF 1.3) represents a freehand "scribble"
composed of one or more disjoint paths. The parameter Points represents a stroked path. More paths
can be added with AddInkList().
The points are interpreted in currect user space. Any transformation that was applied on the
coordinate system will be taken into account.
The points are connected with bezier curves to achieve a smooth transition between points. If the
points should be connected with straight lines, then create a PolyLine annotation instead (see
PolyLineAnnot()).
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.
Previous topic: InitOCGContUsage, InitStack
Next topic: InsertBarcode