GetOutlineActionInfo
Outlines, annotations and hotspot links
Description
Returns the action attached to the given outline item as a TPDFlibActionInfo, with the action kind, its target and the type-specific fields already resolved. An item carrying no action yields akNone, with the remaining fields left at their defaults.
Syntax
Delphi
Function TPDFlib.GetOutlineActionInfo(OutlineID: Integer): TPDFlibActionInfo;
Parameters
OutlineID is an outline handle as returned by NewOutline, GetFirstOutline, GetNextOutline or GetFirstChildOutline; a handle that no longer resolves yields an unresolved record instead of raising an exception.
Return values
A TPDFlibActionInfo for the item's /A action, with Kind and the type-specific members resolved. Kind stays akNone, with the remaining members at their defaults, when the item has no action, the handle is stale, or the action's /S names a type the library does not decode.
Remarks
Bookmarks that carry only /Dest have no action and therefore report akNone here; read their target with GetOutlineDestinationInfo instead. The action may be an inline dictionary or an indirect reference, and both are followed. Strings are decoded as PDF text strings, so JavaScript bodies come back ready to use, while members a given action type does not define stay at their defaults — which makes Kind the field to branch on before reading anything else.