DocJavaScriptAction
Document properties, JavaScript
Description
This function is used to add JavaScript to document events. This JavaScript will be executed when, for example, the document is closed or printed.
Syntax
Delphi
function TDebenuPDFLibrary1811.DocJavaScriptAction(ActionType,
JavaScript: WideString): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::DocJavaScriptAction(ActionType As String,
JavaScript As String) As Long
DLL
int DPLDocJavaScriptAction(int InstanceID, wchar_t * ActionType,
wchar_t * JavaScript)
Parameters
ActionType |
The event to attach the JavaScript to: "WC" = Will close "WS" = Will save "DS" = Did save "WP" = Will print "DP" = Did print |
JavaScript | The JavaScript to attach to the event. |
Return values
0 | The specified ActionType was not valid |
1 | The JavaScript was added successfully |