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

Function Reference
Page 351 of 821
}TActionType;
The function returns the type of an annotation. The parameter ActHandle must be a valid action
handle. To determine the used action types of a specific object use GetActionTypeEx() instead.
Return values:
If the function succeeds the return value is the type of the annotation (make a type cast to
TActionType to determine the action type). If the function fails the return value is a negative error
code.
GetActionTypeEx
Syntax:
SI32 pdfGetActionTypeEx(
const PPDF* IPDF, // Instance pointer
TObjType ObjType, // Object type
UI32 ObjHandle,
// Object handle
UI32 ActIndex)
// Action index
typedef enum
{
otAction,
otAnnotation,
otBookmark,
otCatalog,
otField,
otPage,
otPageLink
}TObjType;
The function returns the action type of an action used by a specific PDF object. The parameter
ObjType specifies the type of object that identifies the parameter ObjHandle. If the object type is a
page use the page number as handle.
The parameter ActIndex is an index into the objects action array. Use the function
GetObjActionCount() to get the number of actions used by the object. This number can be used in a
for statement to loop over the object actions. See DeleteActionFormObj() for an example application.
Return values:
If the function succeeds the return value is the type of the annotation (make a type cast to
TActionType to determine the action type). If the function fails the return value is a negative error
code.
GetActiveFont
Syntax:
SI32 pdfGetActiveFont(
const PPDF* IPDF) // Instance pointer
The function returns the handle of the active font or -1 if no font is set.
Previous topic: GetActionHandle, GetActionType
Next topic: GetAllocBy, GetAnnot (obsolete)