Skip to main content
Participant
January 22, 2018
Answered

xml export using .net

  • January 22, 2018
  • 3 replies
  • 1332 views

We are working on automating some customer files we receive on a daily basis. We have used some 3rd party tools to export as text.

BUT.. We tried a export to XML from our full version of Adobe Acrobat and we like how the data is exporting out.

here is the question.

Is there a way to use .net to interface with Acrobat to tell it to export the xml data?

We are getting a bit lost in the sdk info.

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

So you want to do a SaveAs > XML. Just like the menu item?

This can also be done by invoking JS from the IAC JSO.  Here is the reference entry for the doc.saveAs function

Acrobat DC SDK Documentation

Notice the "cConvID " input

3 replies

Legend
January 23, 2018

The direct VB interface is very small and simple. But it allows you to run Acrobat JavaScript through a couple of interfaces. This means that you have access to most of the very large JavaScript API.

Legend
January 23, 2018

Please bear in mind that using Acrobat for full unattended automation is argued to be a licensing violation. This doesn’t apply if this is a repeated task performed by a logged in user, which completes and does not wait for future work.

Thom Parker
Community Expert
Community Expert
January 22, 2018

Do you mean XML form data?  And by SDK, do you mean the "Interapplication Communcation Interface" (the IAC)?

If so then you can export XML form data using the JavaScript function "doc.exportXFAData()", which can be executed from the IAC through the JSO.  You'll need to set the bXDP input parameter to false to get pure simple XML.

You can read about it here:

Acrobat DC SDK Documentation

and here

http://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pd

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
January 22, 2018

Getting the text data

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
January 22, 2018

So you want to do a SaveAs > XML. Just like the menu item?

This can also be done by invoking JS from the IAC JSO.  Here is the reference entry for the doc.saveAs function

Acrobat DC SDK Documentation

Notice the "cConvID " input

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often