GetActionNextCount

Annotations and hotspot links

Description

Returns the number of chained next-actions attached to the specified action

Syntax

Delphi

Function TPDFlib.GetActionNextCount(ActionID: Integer): Integer;

DLL

int DLGetActionNextCount(int InstanceID, int ActionID);

Parameters

ActionIDAn ActionID as returned by GetAnnotActionID, GetOutlineActionID, or GetFormFieldActionID

Return values

0The action has no resolvable next-actions, or the specified ActionID was not valid
>0The number of resolvable next-action dictionaries in the action chain

Remarks

The count covers both the single-dictionary and array forms of the PDF /Next entry

Use GetActionNextInfo with a 1-based index from this count to inspect each chained action