typedef
OPAQUE_64_BITS
PDAction
;
typedef
struct
_t_PDActionClipboardData
*
PDActionClipboardData
;
true
only if all actions in the chain can be copied. ASBool
PDActionCanCopy(
PDAction
action
);
action | The action to test.
|
ASBool
PDActionCanPaste(
PDDoc
dest
,
PDActionClipboardData
data
);
dest | The destination document.
|
data | The action data to test.
|
PDActionClipboardData
PDActionCopy(
PDAction
action
);
action | The action to copy.
|
void
PDActionDestroy(
PDAction
action
);
action | IN/OUT The action to destroy.
|
void
PDActionDestroyClipboardData(
PDActionClipboardData
data
);
data | The clipboard action data to destroy.
|
ASBool
PDActionEqual(
PDAction
action
,
PDAction
action2
);
action | The first actions to be compared.
|
action2 | The second action to be compared.
|
PDAction
PDActionFromCosObj(
CosObj
obj
);
obj | The dictionary Cos object whose action is obtained.
|
obj
. is raised if the action is invalid as determined by PDActionIsValid().
|
CosObj
PDActionGetCosObj(
PDAction
action
);
action | IN/OUT The action whose Cos object is obtained.
|
Gets an action's destination view. This only works for actions that contain a view destination; that is, actions whose subtype is GoTo.
For named destinations, this method may return a Cos string object or a Cos name object.
See the description of the Named Destinations in the ISO 32000-1:2008, Document Management-Portable Document Format-Part 1: PDF 1.7, section 12.3.2, page 365.
You can find this document on the web store of the International Standards Organization (ISO).
Note: Since this method may not return a PDViewDestination, use the PDViewDestResolve() method on the returned value to obtain a PDViewDestination.
PDViewDestination
PDActionGetDest(
PDAction
action
);
action | The action whose destination is obtained.
|
Gets a file specification from an action.
Not all types of actions have file specifications; this method only works for actions that contain a file specification.
See the description of Actions in the ISO 32000-1:2008, Document Management-Portable Document Format-Part 1: PDF 1.7, section 12.6, page 414.
You can find this document on the web store of the International Standards Organization (ISO).
PDFileSpec
PDActionGetFileSpec(
PDAction
action
);
action | The action whose file specification is obtained.
|
ASAtom
PDActionGetSubtype(
PDAction
action
);
action | IN/OUT The action whose subtype is obtained.
|
ASBool
PDActionIsValid(
PDAction
action
);
action | The action whose validity is determined.
|
PDAction
PDActionNew(
PDDoc
doc
,
ASAtom
type
);
doc | The document in which the action is created.
|
type | The ASAtom corresponding to the action's subtype. The ASAtom can be obtained from a string using ASAtomFromString().
|
Creates a new action that takes the user to the specified destination view. This method can only be used for destinations in the same document as the source document. Cross-document links must be built up from the Cos level, populating the Action dictionary for the GotoR action.
See the description of the GoToR Action in the ISO 32000-1:2008, Document Management-Portable Document Format-Part 1: PDF 1.7, section 12.6.4, page 417.
You can find this document on the web store of the International Standards Organization (ISO).
PDAction
PDActionNewFromDest(
PDDoc
doc
,
PDViewDestination
dest
,
PDDoc
destDoc
);
doc | The document in which the action is created and used.
|
dest | The destination view.
|
destDoc | The destination document.
destDoc must be the same as doc . |
PDAction
PDActionNewFromFileSpec(
PDDoc
containingDoc
,
ASAtom
type
,
PDFileSpec
fileSpec
);
containingDoc | The document in which the action is created and used.
|
type | The type of action to create.
|
fileSpec | The file specification that is made part of an action.
|
Creates a new PDAction in the destination document, using clipboard data generated by PDActionCopy(). If the original PDAction was an action chain, the entire action chain is recreated. The returned PDAction is the first item in the chain.
When the data is no longer needed, use PDActionDestroyClipboardData() to free the structure.
PDAction
PDActionPaste(
PDDoc
dest
,
PDActionClipboardData
data
);
dest | The destination document for the paste operation.
|
data | The clipboard structure holding the copied action data.
|