2 Replies Latest reply on Aug 19, 2011 4:43 AM by CiccioD

    Call PDF Javascript Function from External HTML Document

    GSTSX

      Greetings,

       

      Forgive me if this information has been posted previously - I've searched quite a bit and haven't quite found anything specific or similar.

       

      We have LiveCycle Designed forms, and are including the Form in an IFRAME within an HTML page.  From there, we would like to be able to call one of the functions we've added to the LiveCycle form.

       

      So for example,

      <HTML>
      <HEAD><TITLE></TITLE>
      <SCRIPT type="text/javascript">
      function CallFunc()
      {
      window.PDFFrame.TestFunc();
      }
      </SCRIPT>
      </HEAD>
      <BODY>
      <iframe src="MyPDFFile.pdf" width="100%" height="100%" name="PDFFrame" id="PDFFrame"></iframe>
      </HTML>

       

      The "window.PDFFrame.TestFunc()" is where I'm running into issues.  I have tried to use PDFFrame.xfa.etc, and PDFFrame.document.etc, but I'm not sure of the appropriate method to access this PDF Document's functions.

       

      I do have a "TestFunc()" defined (tested and working) in the PDF document (designed in LiveCycle).


      Any advice is much appreciated -

      Thanks!