GetDocumentActionInfo

Document properties, actions

Description

Returns the typed action attached to a document lifecycle trigger

The returned kind is akNone when the trigger has no supported action

Syntax

Delphi

Function TPDFlib.GetDocumentActionInfo(Trigger: TPDFlibDocumentActionTrigger): TPDFlibActionInfo;

Parameters

TriggerLifecycle trigger to read: datWillClose, datWillSave, datDidSave, datWillPrint or datDidPrint

Return values

Returns the TPDFlibActionInfo record for the trigger. Kind is akNone when no action is attached; otherwise the record fields describe the action kind, target, destination geometry and action-specific values. Reading does not modify the document.

See also

SetDocumentAction, RemoveDocumentAction, TPDFlibActionInfo