PageJavaScriptAction
Description
This function is used to add JavaScript to a page open or page close event.
Syntax
Delphi
function TDebenuPDFLibrary1811.PageJavaScriptAction(ActionType,
JavaScript: WideString): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::PageJavaScriptAction(ActionType As String,
JavaScript As String) As Long
DLL
int DPLPageJavaScriptAction(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 |
