DynaPDF Manual - Page 159
Previous Page 158 Index Next Page 160
Function Reference
Page 159 of 860
AddInkList
Syntax:
LBOOL pdfAddInkList(
const PPDF* IPDF,
// Instance pointer
UI32 InkAnnot,
// Handle of an ink annotation.
struct TFltPoint* Points, // Array of points
UI32 NumPoints)
// Number of points in the array
The function adds an array of points or path to an Ink Annotation. The function must be called
within an open page.
An ink annotation can contain an arbitrary number of paths. The points will be connected by curves
to achieve a smooth transition between points. The coordinates are treated in current user space.
Any transformation that was applied on the coordinate system will be taken into account.
If the number of points is zero then all paths will be deleted from the annotation.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
AddJavaScript
Syntax:
SI32 pdfAddJavaScript(
const PPDF* IPDF,
// Instance pointer
const char* Name,
// Name of the script (required)
const char* Script) // JavaScript (required)
The function adds a global JavaScript to the PDF file. The parameter Name must be a unique name to
identify the script in the user interface:
Previous topic: AddImage
Next topic: AddLayerToDisplTree