IPXV_Inst::ExecuteJS Method

From PDF XChange PDF SDK
Jump to: navigation, search
Line 27: Line 27:
 
:[in]  Pointer to IUnknown*. Used for special trigger class/subclass combinations. Not supported currently.
 
:[in]  Pointer to IUnknown*. Used for special trigger class/subclass combinations. Not supported currently.
 
;pResult
 
;pResult
:[in, defaultvalue(NULL)]  Optional pointer to the [[PXV:IString|IString]] object. Specify it if you need any output from the script executing.
+
:[in, defaultvalue(NULL)]  The optional pointer to the [[PXV:IString|IString]] object. Specify it if you need any output from the script executing.
  
 
== Return Value ==
 
== Return Value ==

Revision as of 17:09, 24 May 2015


The method executes the specified Java Script.

Syntax

HRESULT ExecuteJS([in]                      IPXV_Document*             pDoc,
                  [in]                      LPWSTR                     pScript,
                  [in]                      PXV_ActionTriggerClass     nClass,
                  [in]                      PXV_ActionTriggerSubclass  nSubclass,
                  [in]                      IUnknown*                  pActionData,
                  [in, defaultvalue(NULL)]  IString*                   pResult);

Parameters

pDoc
[in] Pointer to IPXV_Document object that specifies the target document.
pScript
[in] The unicode string that contains Java Script.
nClass
[in] Value of PXV_ActionTriggerClass. In most cases you may pass PAEC_External value.
nSubclass
[in] Value of PXV_ActionTriggerSubclass. In most cases you may pass PAESC_Exec value.
pActionData
[in] Pointer to IUnknown*. Used for special trigger class/subclass combinations. Not supported currently.
pResult
[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.

See Also

IPXV_Inst