Hi,
A few (I hope!) quick questions:
- Can Forms developed with LiveCycle from Acrobat Pro 9 use submitForm() and then multipart HTTP POST both the form data as XML and also file attachments?
- Are server responses or progress indications to HTTP POST processable by the Acrobat client? (Ie: 'Form received', or '85% complete', etc.)
- What is the best way to programmatically extract XML form data and attachments on the server side without LiveCycle ES? (We have in-house XML parsing tools which populate our business database.)
Thanks and all best!
Attachments are a problem. Not that it can't be done, it's just a rather hairy coding job. The only easy way to send attachements is to send the entire PDF at once. If you want to send them bit by bit you'll need to read out the byte level content with AcroForm "Data" object functions, put it in an XML structure and again send with the "oXML" input to submitForm().
You can track progress with the "app.thermometer" object or with your own Custom Progress bar through code the server sends back in FDF.
Just about every server side programming language has an XML parsing library or use your own. Use whatever you are most comfortable with. It doesn't matter. The XML Acrobat will be sending is pretty basic.
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/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script