Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

DynaPDF Manual - Page 325

Previous Page 324   Index   Next Page 326

Function Reference
Page 325 of 766
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: GetActionType

Next topic: GetAnnot (obsolete)