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.
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
Notice the "cConvID " input
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:
and here
http://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pd
Copy link to clipboard
Copied
Getting the text data
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
Notice the "cConvID " input
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.
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.
Copy link to clipboard
Copied
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.