SetActionURL

Annotations and hotspot links

Description

Sets the target URL of the specified action.

Syntax

Delphi

function TPDFlib.SetActionURL(ActionID: Integer; Const NewURL: WideString): Integer;

ActiveX

Function PDFlib::SetActionURL(ActionID As Long, NewURL As String) As Long

DLL

int DLSetActionURL(int InstanceID, int ActionID, wchar_t * NewURL);

Parameters

ActionIDAn ActionID as returned by the GetAnnotActionID, GetOutlineActionID or GetFormFieldActionID functions
NewURLThe new URL target

Return values

0The specified ActionID was not valid
1The action's target URL was set successfully