AddActionNextDestination

Destinations and actions

Description

Appends a GoTo action that targets an existing explicit destination to an action Next chain

Syntax

Delphi

Function TPDFlib.AddActionNextDestination(ActionID, DestID: Integer): Integer;

Parameters

ActionIDExisting action handle that receives the Next action
DestIDDestination handle returned by NewDestination or another destination-building API

Return values

Returns 1 on success, or 0 if the action, destination, or PDF/A mode is invalid

Remarks

Use this helper when a JavaScript, URI, SubmitForm, ResetForm, Hide, ImportData, or GoTo action sequence should continue with an in-document jump

See also

AddActionNextResetFormFields, AddActionNextSubmitFormFields, NewDestination