A3DPDFPageSetActionJavascript
-
A3DStatus
A3DPDFPageSetActionJavascript(A3DPDFPage *pPage, const A3DPDFEEventActionType eEventActionType, const A3DUTF8Char *pcJavascriptString) A3DStatusA3DPDFPageSetActionJavascript(A3DPDFPage* pPage, constA3DPDFEEventActionTypeeEventActionType, constA3DUTF8Char* pcJavascriptString)Function to define a javaScript action to an event triggered on the page.
The JavaScript is defined as a string.
The goal of this function is to define a JavaScript action to be launched on an event triggered on the page level.
Return Values
A3D_SUCCESS:
9.0
Parameters
pPage: The Page object to work with.
eEventActionType: The action type. Only
kA3DPDFEventPageOpenedandkA3DPDFEventPageClosedare relevant at page level.pcJavascriptString: The string which contains the JavaScript.
Returns
A3D_SUCCESS in case of success or an error code