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);
int DLDocJavaScriptActionA(int InstanceID, const char* ActionType, const char* JavaScript);
Parameters
| ActionType | De event waaraan de JavaScript wordt gekoppeld: "WC" = vóór sluiten "WS" = vóór opslaan "DS" = na opslaan "WP" = vóór afdrukken "DP" = na afdrukken |
|---|---|
| JavaScript | De aan het event te koppelen JavaScript |
Retourwaarden
| 0 | De opgegeven ActionType was ongeldig |
|---|---|
| 1 | De JavaScript is met succes toegevoegd |