3 Replies Latest reply on Jun 3, 2011 8:00 AM by George_Johnson

    Question on "Trusted Functions"


      Ref: "JavaScript for Acrobat API Reference," p. 32 & 143-145.


      I need to allow my JavaScipt to run in a privileged context in order to allow this.mailForm(..) to run without user interaction.  The above reference on p. 144 tells me how to "mark a function as trusted." It gives me a script for a "trustedNewDoc" function to put in a .js file which it says "can be executed from anywhere" but "cannot normally be executed from a mouse up event."


      Please tell me how to attach this .js file to my PDF document.


      (I know in HTML, I can attach a .js file with the line:
      <script type="text/javascript" src="config.js"></script>
      but I don't know how to do it with a PDF document on my website.)