10 Replies Latest reply on Oct 17, 2014 8:59 AM by tonyata

    call trusted function from hostcontainer.messagehandler

    tonyata

      Hello.  Relatively new to Acrobat javascript and was hoping someone could help me.

       

      I've successfully created a trusted function and can call it from a button handler (native/non-web browser).  I have also successfully set up a hostcontainer messagehandler and can make calls to it from a web browser to an embedded (<object />) PDF.  But, when the hostcontainer messagehandler makes a call to the same trusted function, I get:

       

      trustedFunctionNameHere is not defined.

       

      Is it possible to call a trusted function (folder level script) via hostcontainer.messagehandler?  Are special settings required?

       

      Thank you!