These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

pdf forms population

ben4444
Registered: Sep 6 2007
Posts: 6

I asked question on xml connection to pdf, got good, quick response, asked follow-up, and that seems to have passed thru cracks.
Orig question: I am trying to get xml docs that are created on fly in php via posted form and then create the xml. PDf works (fills in fields) when linked to in LiveCycle 8. But I have been unable to get script to link to the xml form. (Eventually, I want to - if possible- link to the pdf form with a parameter of the xml file and have fields automatically appear for print, etc.) So far I have not even got the data to appear mnually executing scripts in LiveCycle. Can I get help or can you point me to existing examples on the needed script?
Answer: You don't need JavaScript to connect an XFA PDF to an XML file. This is a built-in feature of LiveCycle Forms. You just bind the form to the XML file through the "Data View" tab and the field binding properties in Designer. You can even add your own XSLT file for transforming the gramar.
 
However the XFA form and the XML file must be on the users local system. It sounds like you want to do this over the internet. Acrobat/PDF has two mechanisms for connecting to stuff over the web.
 
1. HTTP Request/Response
2. SOAP
 
In both cases you have to write the server side code for handling data transmitted from Acrobat, and agian, none or very little JavaScript is required in the PDF file to do this since most of the work is done on the server side.
My unanswered follow-up:
Right - Internet
Can you point me to examples using both SOAP and HTTP Request/Response?
 
Do I need LiveCycle Forms? Currently have LiveCycle Designer 8 and Acrobat Professional 8?
 
What formats are combined on the server to get to the user-delivered pdf client with fields populated?
 
Thanks in advance
 
— added by ben4444 on Fri, Sep 7, 2007
Additional pleading: Please help, been at this problem for over 2 weeks after spending a lot of money on adobe products for this purpose and finding they do not work for that purpose.

My Product Information:
LiveCycle Designer, Unix/Linux
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What you are asking for is not simple. I give all day classes on this stuff. I can't give you a simple answer and any solution will take quite a bit of time to implement.

Here are some clues:

You don't need LiveCycle forms. As far as internect connectivity goes, both LC and AcroForms work about the same. LC is more difficult to work with

There are several Acrobat/PDF centric data formats that Acrobat recognizes. You'll find these listed in the documentation for the "submitForm" function. The key to using the HTTP (i.e. submitForm) method is that the server side script has to return one of these formats and set the MIME type in the Response header.

There are examples of SOAP in PDF floating around. Take a look on [url=http://www.planetpdf.com]www.planetpdf.com[/url] and look up the SOAP object in the Acrobat JavaScript Reference.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script