Answered
I have a client I created a form for in order to streamline new hire paperwork. His stores only use Acrobat Reader to complete the form therefore all forms are Reader Enabled.
Now he would like to save the form data in XML format in a file OR encrypt the XML file so they can email it securely. I can create an Export button [generic button with JS " xfa.host.exportData("", 0) " to save the file which works fine for Acrobat Pro, but not for Reader. Is there a work around this?
Or can I encrypt the XML file for emailing?
Any help would be very much appreciated
In your code you specified a blank path. Try passing in null. If this doens't work then use the "doc.exportXFAData()" directly like this.
event.target.exportXFAData({aPackets:["datasets"]});
There is no encryption supplied for exporting data. However, you can certainly encrypt the data file that is saved to the hard drive with another program.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script