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 LongDLL
int DLPageJavaScriptAction(int InstanceID, wchar_t * ActionType, wchar_t * JavaScript);Parameters
| ActionType | The 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 |
|---|---|
| JavaScript | This is the JavaScript to execute when the event occurs. |
Return values
| 0 | The specified ActionType was not valid |
|---|---|
| 1 | The JavaScript was added successfully |