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

DynaPDF Manual - Page 283

Previous Page 282   Index   Next Page 284

Function Reference
Page 283 of 750
DeleteActionFromObj
Syntax:
SI32 pdfDeleteActionFromObj(
const PPDF* IPDF, // Instance pointer
TObjType ObjType, // Object type
UI32 ActHandle,
// Action handle
UI32 ObjHandle)
// Object handle
typedef enum
{
otAction,
otAnnotation,
otBookmark,
otCatalog,
otField,
otPage,
otPageLink
}TObjType;
This function deletes an action from a PDF object. If the object type is page, then use the page
number as handle. If the handle of the action is not known, because the object was may be imported
from an external PDF file, then use the function DeleteActionFromObjEx() instead.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
DeleteActionFromObjEx
Syntax:
SI32 pdfDeleteActionFromObjEx(
const PPDF* IPDF, // Instance pointer
TObjType ObjType, // Object type
UI32 ObjHandle,
// Object handle
UI32 ActIndex)
// Action index (see below)
This function can be used to delete an action from an object without using an action handle. The
action handle is often not known because the object was may be imported from an external PDF file.
In this case the actions of the object can be enumerated in a while statement and deleted by this
function if necessary (see example below).
The maximum index is decremented each time an action was deleted.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: DeleteAcroForm

Next topic: DeleteAnnotationFromPage