DynaPDF Manual - Page 462

Previous Page 461   Index   Next Page 463

Function Reference
Page 462 of 860
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.
The value of the parameter ObjHandle depends on the object type. If the object type is a page, the
page number must be used as object handle. The number of actions which are assigned to a specific
object is returned by the function GetObjActionCount(). The parameter ActIndex represents is array
index of the action that should be accessed. The first action in the array has the index 0.
 

Previous topic: GetJavaScriptAction (obsolete)

Next topic: GetJavaScriptActionEx, GetJavaScriptCount