A3DPDF3DAnnotSetActionJavascript

A3DStatus A3DPDF3DAnnotSetActionJavascript(A3DPDFPage *pPage, A3DPDF3DAnnot *p3DAnnot, const A3DPDFEEventActionType eEventActionType, const A3DUTF8Char *pcJavascriptString)
A3DStatus A3DPDF3DAnnotSetActionJavascript(A3DPDFPage* pPage, A3DPDF3DAnnot* p3DAnnot, const A3DPDFEEventActionType eEventActionType, const A3DUTF8Char* pcJavascriptString)

Function to define a javaScript action to an event triggered on an annotation.

The JavaScript is defined as a string.

Parameters

pPage: The Page object to work with.

p3DAnnot: The 3D annot object to work with.

eEventActionType: The action type.

pcJavascriptString: The string which contains the JavaScript.

Returns

A3D_SUCCESS in case of success or an error code