DynaPDF Manual - Page 707
Previous Page 706 Index Next Page 708

Function Reference
Page 707 of 874
Set3DAnnotScript
Syntax:
LBOOL pdfSet3DAnnotScript(
const PPDF* IPDF,
// Instance pointer
UI32 Annot,
// Handle of a 3D annotation
const char* Value, // JavaScript that should be executed
UI32 Len)
// Length of the script
The function assigns a JavaScript to a 3D annotation. JavaScripts which are assigned with a 3D
annotation have direct access to the 3D context. Global JavaScripts have only limited access to the
3D context of a 3D annotation but it is possible to execute a script that is assigned with the
annotation. Note that such JavaScripts must be accessed over the annotation:
annot = getAnnots3D(0)[0].context3D; // Get the annotation context
// This function must be defined in the JavaScript of the 3D annotation.
annot.Test();
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetActiveSigField
Syntax:
LBOOL pdfSetActiveSigField(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// Handle of a signature field
The function sets the signature field that should be signed. If a PDF file contains more than one
signature field, the first signature field without a value is selected for signing by default.
If a different signature field should be signed, call this function with the desired handle.
If the signature field contains already a value or signature, the function returns with an error and
the field to be signed is not changed.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Previous topic: SelfTest, Set3DAnnotProps
Next topic: SetAllocBy, SetAltFonts