Skip to main content
guyd98534550
Participant
June 20, 2016
Question

get data from xml file.

  • June 20, 2016
  • 1 reply
  • 1277 views

I can get data from a .fdf file and populate my forms. using "import form data", how can I import xml data?

If that is possible, then i would like to export to xml.

I have been searching java script, alot of people are asking for this, but have not yet found a definitive solution.

thank you in advance

Guy D'Amato

forms were created in Acrobat Pro DC not lifecycle.

This topic has been closed for replies.

1 reply

Karl Heinz  Kremer
Community Expert
Community Expert
June 20, 2016

The FDF format has an XML based "sibling: You can use XFDF to import and export data from a PDF form. To see what the XFDF file for your form looks like, just select More>Export Data... in Acrobat Pro DC:

On the dialog that pops up, select XFDF as the output format. You very likely will have to modify the XML data via XSLT to match the XML "flavor" you are expecting. You import XFDF via the "Import Data" menu item in the above menu.

guyd98534550
Participant
June 20, 2016

That is exactly what i am looking for, can i add this as a button field in the form?  So when a tech clicks the button , it pulls in the data?  and when he pushes another button, it exports the new data?

Karl Heinz  Kremer
Community Expert
Community Expert
June 20, 2016

Take a look at Doc.exportAsXFDF() - Acrobat DC SDK Documentation - Doc.exportAsXFDF() - and Doc.importAnXFDF() - Acrobat DC SDK Documentation - Doc.importAnXFDF()