These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Possible to get information out of PDF-attachments (e.g. xml-files)

floG23
Registered: Apr 21 2010
Posts: 14

Hi,
is it possible to get the Data of an XML-File, which is set as an pdf-attachment by ActionScript or Javascript? In JavaScript there is the function with calling doc.* ... Can we call this document Information by JS and tunnel it with callAS(..) to my RMA, where the xml-data will be edited? There is a example in the Javascript api reference of Adobe, where useres edit the attachment file, save it new and send it to more people... So is it possible to:
 
- open an xml-file as attachment
- getting the Data by JS
- sending with callAS(...) to my RMA, where a List shows the xml-data
- later on, by modification within my RMA, save new data to the attachment by tunneling back from AS to JS, and there to the embedded xml-attachment
  
Curious question, i know, but i hope it can be done...
 
Greetings
floG23

My Product Information:
Acrobat Pro Extended 9.4, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
Have you looked at the documentation for the doc.getDataObjectContents? It should help you get started.
floG23
Registered: Apr 21 2010
Posts: 14
Hi. some tryouts later on the posting-day, i got this documentation. :) Thanks
mczajka
Registered: Oct 11 2005
Posts: 29
I have a similar app. someone wants to develop. I've used the above to attach/extract XML content from an XML object. They want to take a document, scan it, OCR it, apply XML tags to the text (ouch), then embed the XML file.

I don't think they know entirely how they will access the XML. Or perhaps there would be a way to apply the XML into the tagged tree (can this be done?). Are there search engines that will look at the tagged/accessible XML tree?