PDFium Delphi Component Docs

GetPageActionURI method

Component: TPdf  ·  Unit: PDFium
Read the URI a page additional action opens.

Syntax

function GetPageActionURI(EventType: Integer): WString;

EventTypeInteger. 0 for the page-open action, 1 for the page-close action.
ResultWString. The target URI, or an empty string when the page has no URI action for that event.

Description

Returns the address a URI-type page action points at, which is what an audit needs: a page that opens an external address on display is worth reporting before the document is trusted

An empty result covers both "no action" and "an action that is not a URI action". Check GetPageActionType first to tell the two apart

The URI is returned as text and is not followed. Deciding whether to open it belongs to the application

See Also

GetPageActionType, WebLink, AuditActiveContent