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

xml connection to pdf

ben4444
Registered: Sep 6 2007
Posts: 6

Hi
 
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 nedded script?

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
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.

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

ben4444
Registered: Sep 6 2007
Posts: 6
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.

Thanks in advance