DynaPDF Manual - Page 431

Previous Page 430   Index   Next Page 432

Function Reference
Page 431 of 818
GetJavaScriptAction (obsolete)
Syntax:
char* pdfGetJavaScriptAction(
const PPDF* IPDF,
// Instance pointer
UI32 AHandle,
// Handle of a JavaScript action
UI32 ADDR Len,
// String length in characters
LBOOL ADDR Unicode) // If true, the return value is a Unicode string
The function returns the script of a JavaScript Action as string. The parameter AHandle must be a
valid handle of a JavaScript Action. The parameter Len holds the string length in characters without
null-terminator. If Unicode is true, the return value is a Unicode string. Make a typecast to UI16* in
the latter case. The returned string is a pointer to the original value. Do not change or free the string.
This function is obsolete. Please use GetJavaScriptActionEx() instead.
Return value:
If the function succeeds the return value is the JavaScript as Ansi or Unicode string. If the function
fails the return value is NULL.
GetJavaScriptAction2 (obsolete)
Syntax:
char* pdfGetJavaScriptAction2(
const PPDF* IPDF,
// Instance pointer
TObjType ObjType,
// Object to which the object handle corresponds
UI32 ObjHandle,
// Handle of the object that contain the action
UI32 ActIndex,
// Action index that should be accessed
UI32 ADDR Len,
// Variable to which the length can be set
LBOOL ADDR Unicode,
// If true, the script is defined in Unicode
TObjEvent ADDR Event) // The event in which the action is executed
typedef enum
{
oeNoEvent,
// Internal -> cannot occur
oeOnOpen,
// Catalog, Pages
oeOnClose,
// Pages only
oeOnMouseUp,
// All fields, page link annotations, bookmarks
oeOnMouseEnter,
// Form fields only
oeOnMouseExit,
// Form fields only
oeOnMouseDown,
// Form fields only
oeOnFocus,
// Form fields only
oeOnBlur,
// Form fields only
oeOnKeyStroke,
// Text fields only
oeOnFormat,
// Text fields only
oeOnCalc,
// Text fields, combo boxes, list boxes
oeOnValidate,
// All form fields, except buttons
oeOnPageVisible,
// PDF 1.5 -> Form fields only
oeOnPageInVisible,
// PDF 1.5 -> Form fields only
oeOnPageOpen,
// PDF 1.5 -> Form fields only
oeOnPageClose,
// PDF 1.5 -> Form fields only
oeOnBeforeClosing,
// PDF 1.4 -> Catalog only
oeOnBeforeSaving,
// PDF 1.4 -> Catalog only
oeOnAfterSaving,
// PDF 1.4 -> Catalog only
oeOnBeforePrinting, // PDF 1.4 -> Catalog only
 

Previous topic: GetJavaScript

Next topic: GetJavaScriptActionEx


Start Chat