DynaPDF Manual - Page 350
Previous Page 349 Index Next Page 351

Function Reference
Page 350 of 821
Example:
SI32 actCount = pdfGetActionCount(pdf);
for (i = 0; i < actCount; i++)
{
if (pdfGetActionType(pdf, i) == (SI32)atJavaScript)
pdfDeleteAction(pdf, i);
}
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
atGoTo3DView,
// Go-to 3D view action
atGoToE,
// Go-to embedded file action
atRichMediaExec // Rich Media Execution, PDF 1.7 Extension Level 3
Previous topic: FreeUniBuf, Get3DAnnotStream, GetActionCount
Next topic: GetActionTypeEx, GetActiveFont