PDFium Delphi Component Docs

GetPageActionType method

Component: TPdf  ·  Unit: PDFium
Read which kind of additional action the current page carries for open or close

Syntax

function GetPageActionType(EventType: Integer): Integer;

EventTypeInteger. 0 for the page-open action (FPDFPAGE_AACTION_OPEN), 1 for the page-close action (FPDFPAGE_AACTION_CLOSE)
ResultInteger. The PDFACTION_* type of the action, or 0 when the page has none for that event

Description

Pages can carry additional actions (ISO 32000-1 12.6.3) that a viewer triggers when the page is shown or left - typically a script, a URI or a jump to another destination. This reports which kind is attached

A result of 0 means no action, so a caller can gate the follow-up read. When the type says URI, GetPageActionURI returns the target

This reads the page-level actions. Widget-level scripts are read with GetWidgetAdditionalActionJavaScript, whilst document-level ones are listed by JavaScriptActions

See Also

GetPageActionURI, JavaScriptActions, GetWidgetAdditionalActionJavaScript, AuditActiveContent