AddActionNextEx

Annotations and hotspot links, Form fields

Description

Appends a next-action to an existing action handle by selecting the action kind with a named builder constant

Syntax

Delphi

Function TPDFlib.AddActionNextEx(ActionID, ActionKind: Integer; Const Value, FieldNames: WideString; Flags, DestID: Integer): Integer;

Parameters

ActionIDAn action handle returned by an annotation, outline, open-action, or form-field action helper
ActionKindOne of PDF_ACTION_BUILDER_WEB, PDF_ACTION_BUILDER_NAMED, PDF_ACTION_BUILDER_JAVASCRIPT, PDF_ACTION_BUILDER_HIDE, PDF_ACTION_BUILDER_SUBMIT, PDF_ACTION_BUILDER_RESET, PDF_ACTION_BUILDER_IMPORTDATA, or PDF_ACTION_BUILDER_DESTINATION
ValueThe URI, named action, JavaScript source, import-data file name, or unused value for destination actions
FieldNamesA comma-separated field list for hide, submit, and reset actions
FlagsAction-specific submit or reset flags, or the hide flag for visibility actions
DestIDThe destination handle for PDF_ACTION_BUILDER_DESTINATION

Return values

0The action handle, action kind, or required value was invalid
1The next-action was appended successfully

Remarks

The helper reuses the same internal action construction path as the action-specific AddActionNext* methods, so PDF/A restrictions and action introspection remain consistent