Expand my Community achievements bar.

Generate or Preview XML when Extending Reader Options using Adobe LiveCycle Designer

Avatar

Former Community Member

Hi,

I am trying to view the generated xml when reader options are extended. However, when I try to open the reader extended PDF in LiveCycle Designer, it says you will lose reader options. Is there any other way in which I can compare the generated XML before and after extending reader options?

I am having issues processing PDF after extending reader options as the generated xml is generating the following error.

"XmlException was unhandled by user code, Data at the root level is invalid. Line1, position1"

1 Reply

Avatar

Level 10

May be you can try this way to get the XML before and after the Reader extensions.

1) Place a Text field with multi line allowed.

2) Place a button on the form with the following in click event.

      TextField1.rawValue = xfa.data.saveXML("pretty");

3) Open the form in either Reader/ Acrobat and click on the Button. Save the XML data in a file that was assigned to the TextField.

4) Reader extend the form.

5) Repeat the step 3 again to capture the XML from the form after Reader Extensions.

This way you can get the XML from the form before and after.

Thanks

Srini