DynaPDF Manual - Page 375
Previous Page 374 Index Next Page 376
Function Reference
Page 375 of 860
GetActionCount
Syntax:
SI32 pdfGetActionCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of actions contained in a document. However, this value does not
include actions (mostly GoTo actions) which are defined inline in bookmarks or link annotations, for
example. Such actions are not stored in separate objects since this would slow down PDF processing
significantly.
GetActionHandle
Syntax:
SI32 pdfGetActionHandle(
const PPDF* IPDF, // Instance pointer
TObjType ObjType, // Object type which contains uses the action
UI32 ObjHandle,
// Object handle
UI32 ActIndex)
// Array index -> GetObjActionCount()
The function returns the handle of an action. To determine the number of available actions of a
specific object call GetObjActionCount(). Since the Catalog object contains no handle, the parameter
ObjHandle will be ignored for this object type.
Return values:
If the function succeeds the return value is the action handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
GetActionType
Syntax:
SI32 pdfGetActionType(
const PPDF* IPDF, // Instance pointer
UI32 ActHandle)
// Action handle
typedef enum
{
atGoTo,
// Go-to action
atGoToR,
// Go-to remote action
atHide,
// Hide action
atImportData,
// Import data action
atJavaScript,
// JavaScript action
atLaunch,
// Launch action
atMovie,
// Movie action
atNamed,
// Named action
atRendition,
// Rendition action
atReset,
// Reset form action
atSetOCGState,
// Set OCG (optional content group) action
atSound,
// Sound action
atSubmit,
// Submit form action
atThread,
// Thread action
atTransition,
// Transition action
atURI
// URI action
Previous topic: FreeUniBuf, Get3DAnnotStream
Next topic: GetActionTypeEx