AddActionNextNamed

Annotations and hotspot links, Page properties

Description

Appends a named page-navigation next-action to an existing annotation, outline, or form-field action

Syntax

Delphi

Function TPDFlib.AddActionNextNamed(ActionID, NamedActionType: Integer): Integer;

DLL

int DLAddActionNextNamed(int InstanceID, int ActionID, int NamedActionType);

Parameters

ActionIDAn ActionID as returned by GetAnnotActionID, GetOutlineActionID, or GetFormFieldActionID
NamedActionType0 for NextPage, 1 for PrevPage, 2 for FirstPage, or 3 for LastPage

Return values

0The specified ActionID was not valid
1The named next-action was appended successfully

Remarks

The function writes the PDF action /Next entry without replacing the primary action, preserving any existing chained actions

Values outside the documented NamedActionType range are treated as NextPage for compatibility with named-action link creation