Answered
I am trying to write a script that executes on Page Open that will automatically update fields with values from a Database. The Database will output an XML file for import.
I have successfully imported XML data but what I need to do is import the data from a URL.
Can someone point me in the right direction?
Thanks in advance for your help.
Sarah
A PDF submit to an URL generates an HTTP PUT Request. Acrobat expects to see return data in the HTTP Response generated by the server script at the URL.
So, your Page Open script would call "doc.submitForm()", which sends out an HTTPRequest to a server script, which packs the return data into the body of the HTTPReponse (with correct MIME type) and sends it back to Acrobat. If Acrobat recognizes the return data format, it merges it into the form.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script