Skip to main content
Participating Frequently
May 28, 2021
Answered

From a PDF to an XML file

  • May 28, 2021
  • 1 reply
  • 7420 views

Hello everybody, I need your help. I have a pdf file with different object inside and I have to export it to an XML file with a fixed structure like 

<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<Export>
<TAG>
<TAG1_VALUE>object1.Text</TAG1_VALUE>
<TAGN_VALUE>objectN.Text</TAGN_VALUE>
</TAG>

</Export>

Is possible to do it from a button inside of the document and a JavaScript function behind?

or what do you suggest me to do it?

Tanks a lot

This topic has been closed for replies.
Correct answer Thom Parker

I'm testing the first choice using this command:
this.exportXFAData({
bXDP: false,
aPackets: ["*"]
})

 

But in Adobe Reader it doesn't run.


My bad,  Ignore option #1 😞   The export string operations work in Reader, but not the export to file functions. The export rights are not included in the Save As Extended feature in Acrobat Pro. 

 

So your only option for Reader operation is to submit data to a server. 

 

 

 

 

1 reply

Legend
May 28, 2021

What makes you believe that a PDF can be converted to such a representation? For example, do you know of software which does this exact thing?  What do you mean by "different object inside" and what is the "this" you want to export?

Participating Frequently
May 28, 2021

I don't know if it is possible using Adobe DC Pro and before to develop a software which does this exact things I'm looking for a possibility to do it from the pdf options. Is there anything like action guide or someone can help me to find the right procedure to take a value from a text box or combobox or radio button and save this information in a new file with XML extension?

Thanks

try67
Community Expert
Community Expert
June 1, 2021

Which kind of special right it needs? How can I apply them?


It's called Export Form Rights and you can apply them using Adobe LiveCycle Reader Extensions, or whatever it's called now (I can't keep track of these name changes Adobe does every so often).