Binding an XML file into LiveCycle

Avatar

Avatar

IDuncan804

Avatar

IDuncan804

IDuncan804

19-02-2015

Currently we are using a .dat file to populate a .docx file, but we are having issues with layout and formatting and I want to switch it to using a PDF.


I have found lots of information on adding an XML Data Connection to a PDF, but nothing to do with troubleshooting. I created a simple XML file with three fields and I was able to connect it to a dynamic PDF and then generate the fields into the document. Now when I preview the PDF the values dont fill in, nor when I open it in Reader.

I have tested this on Designer ES2 and ES3 and Reader X.

I cant seem to find a way to attach the XML and PDF, but i will include the XML for reference:

<?xml version="1.0" encoding="UTF-8" ?>

    <draft>

        <number>100040</number>

        <entered>02-18-2015</entered>

        <name>Name</name>

    </draft>

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372
_Bruce_Robertson
MVP

19-02-2015

Hi,You may just need to add the data file to the form, under Form Properties ... Preview?

Answers (3)

Answers (3)

Avatar

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

386

Correct Answer

485

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

386

Correct Answer

485
radzmar
MVP

20-02-2015

The preview only gives you an idea how an imported xml will be populated into your form.

In the final form you'll have to import the XML again using Acrobat.

Avatar

Avatar

IDuncan804

Avatar

IDuncan804

IDuncan804

20-02-2015

Hello,

I believe I spoke too soon, the data now binds when I Preview the PDF in LiveCycle, but when I save it and then open it in Acrobat Pro or Reader, it does not bind the XML data in.

Any help is appreciated.

Ian

Avatar

Avatar

IDuncan804

Avatar

IDuncan804

IDuncan804

20-02-2015

Thank you very much!!!!! That has fixed it perfectly.