Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 320

Previous Page 319   Index   Next Page 321

Function Reference
Page 320 of 750
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)