Page 1 of 1

load dtat to pdf form from xml

Posted: Wed Nov 12, 2014 10:52 pm
by kashiash
In Adobe Acrobat Reader I can open PDF form and select import data, next export or import data from xml file to fill fields in my form. The same is possible in PDF viewer. But i can do it onl manually, batch importing is not avaiable.
Is possible to open PDF form and load data from xml file using PDFHchange SDK ? How ?

Thanks in advance

Re: load dtat to pdf form from xml

Posted: Thu Nov 13, 2014 12:52 am
by Vasyl-Tracker Dev Team
Hi, kashiash.

It is possible by Viewer ActiveX Control, by executing JavaScript.
Look for JavaScript functions:
doc.importAnFDF()
doc.importAnXFDF()
doc.importAnFDF()
doc.exportAsFDF()
doc.exportAsFDFStr()
doc.exportAsXFDF()
doc.exportAsXFDFStr()
...

JS-Reference: http://www.adobe.com/content/dam/Adobe/ ... erence.pdf

The java-script can be executed by pdfViewer.RunJavaScript() function:
http://help.tracker-software.com/DEV/de ... javascript

HTH.