DynaPDF Manual - Page 463

Previous Page 462   Index   Next Page 464

Function Reference
Page 463 of 839
GetObjActionCount (obsolete)
Syntax:
SI32 pdfGetObjActionCount(
const PPDF* IPDF, // Instance pointer
TObjType ObjType, // Object type
UI32 ObjHandle)
// Object handle
typedef enum
{
otAction,
otAnnotation,
otBookmark,
otCatalog,
otField,
otPage,
otPageLink
}TObjType;
The function returns the number of actions used by an object. If the object type is a page, then use
the page number as handle.
The number of actions used by an object can be used to remove a specific action from an object. See
also DeleteActionFromObj(), GetActionTypeEx().
This function is marked as obsolete. Please use GetObjActions() instead.
Return values:
If the function succeeds the return value is the number of actions used by an object. If the function
fails the return value is a negative error code.
GetObjActions
Syntax:
SI32 pdfGetObjActions(
const PPDF* IPDF,
// Instance pointer
TObjType ObjType,
// see below
UI32 ObjHandle,
// Object handle
struct TPDFObjActions* Actions) // see below
typedef enum
{
otAction,
otAnnotation,
otBookmark,
otCatalog,
otField,
otPage,
otPageLink
}TObjType;
struct TPDFObjActions
{
UI32
StructSize; // Must be set to sizeof(TPDFObjActions).
SI32
Action;
// Action handle or -1 if not set.
TActionType ActionType; // The type of the action if Action >= 0.
const IEVT* Events;
// Additional events if any. -> GetObjEvent().
};
 

Previous topic: GetNumberFormatObj

Next topic: GetObjEvent