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

ActionTypeDe event waaraan de JavaScript wordt gekoppeld: "WC" = Will close "WS" = Will save "DS" = Did save "WP" = Will print "DP" = Did print
JavaScriptDe aan het event te koppelen JavaScript

Retourwaarden

0De opgegeven ActionType was ongeldig De JavaScript is toegevoegd
1