xml export using .net

New Here ,
Jan 22, 2018 Jan 22, 2018

Copy link to clipboard

Copied

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.

TOPICS
Acrobat SDK and JavaScript

Views

313

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Adobe Community Professional , Jan 22, 2018 Jan 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 functionAcrobat DC SDK Documentation Notice the "cConvID " input

Likes

Translate

Translate
Adobe Community Professional ,
Jan 22, 2018 Jan 22, 2018

Copy link to clipboard

Copied

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2018 Jan 22, 2018

Copy link to clipboard

Copied

Getting the text data

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jan 22, 2018 Jan 22, 2018

Copy link to clipboard

Copied

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 23, 2018 Jan 23, 2018

Copy link to clipboard

Copied

Does Adobe only work with JS what about vb.net?

The job will be run by a logged in local user.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Jan 23, 2018 Jan 23, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Jan 23, 2018 Jan 23, 2018

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines