AddActionNextWeb

Annotations and hotspot links

Description

Appends a URI next-action to an existing annotation, outline, or form-field action

Syntax

Delphi

Function TPDFlib.AddActionNextWeb(ActionID: Integer; Const Link: WideString): Integer;

DLL

int DLAddActionNextWeb(int InstanceID, int ActionID, const wchar_t * Link);

Parameters

ActionIDAn ActionID as returned by GetAnnotActionID, GetOutlineActionID, or GetFormFieldActionID
LinkThe target URI for the chained action

Return values

0The ActionID was invalid or the link string was empty
1The URI next-action was appended successfully

Remarks

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

Use SetActionURL to replace the URI of the primary action, and use AddActionNextWeb when the URI must run after the primary action