IPXV_Inst::ExecuteJS Method
From PDF XChange PDF SDK
The method executes the specified Java Script.
Syntax
HRESULT ExecuteJS([in] IPXV_Document* Doc, [in] LPWSTR Script, [in] PXV_ActionTriggerClass Class, [in] PXV_ActionTriggerSubclass Subclass, [in] IUnknown* ActionData, [in, defaultvalue(NULL)] IString* Result);
Parameters
- Doc
- [in] Pointer to IPXV_Document object that specifies the target document.
- Script
- [in] The unicode string that contains Java Script.
- Class
- [in] Value of PXV_ActionTriggerClass. In most cases you may pass PAEC_External value.
- Subclass
- [in] Value of PXV_ActionTriggerSubclass. In most cases you may pass PAESC_Exec value.
- ActionData
- [in] Pointer to IUnknown*. Used for special trigger class/subclass combinations. Not supported currently.
- Result
- [in, defaultvalue(NULL)] The optional pointer to the IString object. Specify it if you need any output from the script executing.
Return Value
Returns S_OK if operation was successful or error code in other cases.