DocJavaScriptAction
Documenteigenschappen, JavaScript
Beschrijving
Deze functie wordt gebruikt om JavaScript toe te voegen aan documentevents. Deze JavaScript wordt uitgevoerd wanneer bijvoorbeeld het document wordt gesloten of afgedrukt
Syntaxis
Delphi
Function TPDFlib.DocJavaScriptAction(Const ActionType, JavaScript: WideString): Integer;
ActiveX
Function PDFlib::DocJavaScriptAction(ActionType As String, JavaScript As String) As Long
DLL
int DLDocJavaScriptAction(int InstanceID, const wchar_t * ActionType, const wchar_t * JavaScript);
Parameters
| ActionType | De event waaraan de JavaScript wordt gekoppeld: "WC" = Will close "WS" = Will save "DS" = Did save "WP" = Will print "DP" = Did print |
|---|---|
| JavaScript | De aan het event te koppelen JavaScript |
Retourwaarden
| 0 | De opgegeven ActionType was ongeldig De JavaScript is toegevoegd |
|---|---|
| 1 |