Answered
This is a little outside of the Acrobat javascript, but I thought I would try. I am developing an HTML page that presents the user with a list of pdf documents. Based on their selection, I would like to use HTML javascript to open the document. The user would fill out the form, and when they pressed the 'Complete' button in my HTML form, I would like to save the new form.
Essentially, I want to treat the pdf form as an object within my HTML javascript, and have the ability to open / close the object from HTML javascript. Can this be done?
-- OR --
if you can refer me to a specific Acrobat manual, that would help as well!
Thanks for any help...
Take a look at the example on this page:
http://www.windjack.com/resources/howto.php
Scroll down to "IE Browser/Acrobat intercommunication". This example shows how to dynamically load a PDF into an HTML Frame and communicate with it from buttons on a different HTML frame. The code critical to this process is in both the HTML frames and the PDF. Timing is important, as you'll see in the script.
All of the HTML and the PDF are downloadable and unsecured so you can examine all the scripts.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script