
#####################################
A3DPDFDocumentAddJavascriptFromString
#####################################

.. c:function:: A3DStatus A3DPDFDocumentAddJavascriptFromString(A3DPDFDocument *pDoc, const A3DUTF8Char *pcScriptName, const A3DUTF8Char *pcJavascriptString)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DPDFDocumentAddJavascriptFromString(:c:type:`~A3DPDFDocument`\ \* **pDoc**\ , *const* :c:type:`~A3DUTF8Char`\ \* **pcScriptName**\ , *const* :c:type:`~A3DUTF8Char`\ \* **pcJavascriptString**\ )
   
   Adds JavaScript to a document.
   
   This JavaScript is launched when the file is opened.
   
   **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
   
   




