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

DynaPDF Manual - Page 473

Previous Page 472   Index   Next Page 474

Function Reference
Page 473 of 750
LBOOL pdfInitStack(
const PPDF* IPDF,
// Instance pointer
struct TPDFStack* Stack) // Stack variable to be initialized
The function initializes the variable Stack with default values and prepares the editing of a content
stream. This function must always be called before a content stream can be parsed with the function
GetPageText(). See also GetPageText().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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
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.
This function is implemented in an Ansi and Unicode compatible version.

Previous topic: InitOCGContUsage

Next topic: InsertBMPFromHandle