.. _group__a3d__pdf__javascript__module:

#################
JavaScript Module
#################

**(HOOPS Publish Advanced)**\ Functions for setting JavaScript code on PDF entities.

This module describes the functions and structures that allow you to define JavaScript code on PDF entities, such as Document, Page, 3D annot, or Fields.

**Parameters**


   **pDoc**\ : The Document object to work with.

   **pcScriptName**\ : The name of the script. It is not used by Acrobat but needs to be unique.

   **pcJavascriptString**\ : The string which contains the JavaScript.


**Returns**


   A3D_SUCCESS in case of success or an error code


.. rst-class:: kind-group kind-enumeration

.. rubric:: Enumerations
   :class: kind-group-title


.. rst-class:: api-xref-list


* :c:enum:`~A3DPDFEEventActionType`

.. rst-class:: kind-group kind-function

.. rubric:: Functions
   :class: kind-group-title


.. rst-class:: api-xref-list


* :c:func:`~A3DPDFDocumentAddJavascriptFromString`
* :c:func:`~A3DPDFPageFieldSetActionJavascriptFromString`
* :c:func:`~A3DPDFPageFieldSetActionJavascript`
* :c:func:`~A3DPDFDocumentSetActionJavascript`
* :c:func:`~A3DPDFPageSetActionJavascript`
* :c:func:`~A3DPDF3DAnnotSetActionJavascript`

.. toctree::
   :maxdepth: 1
   :hidden:

   ../enums/A3DPDFEEventActionType
   ../functions/A3DPDFDocumentAddJavascriptFromString
   ../functions/A3DPDFPageFieldSetActionJavascriptFromString
   ../functions/A3DPDFPageFieldSetActionJavascript
   ../functions/A3DPDFDocumentSetActionJavascript
   ../functions/A3DPDFPageSetActionJavascript
   ../functions/A3DPDF3DAnnotSetActionJavascript


