PageJavaScriptAction

JavaScript, Page properties

Description

This function is used to add JavaScript to a page open or page close event.

Syntax

Delphi

function TPDFlib.PageJavaScriptAction(Const ActionType, JavaScript: WideString): Integer;

ActiveX

Function PDFlib::PageJavaScriptAction(ActionType As String, JavaScript As String) As Long

DLL

int DLPageJavaScriptAction(int InstanceID, wchar_t * ActionType, wchar_t * JavaScript);

Parameters

ActionTypeThe event to add the JavaScript to: "O" = (capital letter O) This event occurs when the page is opened "C" = This event occurs when the page is closed
JavaScriptThis is the JavaScript to execute when the event occurs.

Return values

0The specified ActionType was not valid
1The JavaScript was added successfully