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

DynaPDF Manual - Page 398

Previous Page 397   Index   Next Page 399

Function Reference
Page 398 of 750
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
oeOnAfterPrinting
// PDF 1.4 -> Catalog only
}TObjEvent;
typedef enum
{
otAction,
otAnnotation,
otBookmark,
otCatalog,
// PDF 1.4
otField,
otPage,
otPageLink
}TObjType;
The function returns the script of a JavaScript Action. The return value is a pointer to the original
string buffer. This value must not be changed or freed.
 

Previous topic: GetJavaScriptAction (obsolete)

Next topic: GetJavaScriptCount