function GetPageActionType(EventType: Integer): Integer;
| EventType | Integer. 0 for the page-open action (FPDFPAGE_AACTION_OPEN), 1 for the page-close action (FPDFPAGE_AACTION_CLOSE) |
| Result | Integer. The PDFACTION_* type of the action, or 0 when the page has none for that event |
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