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

Encrypting LiveCycle Designer XML data in email message

LynPrice
Registered: Jan 3 2006
Posts: 9
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

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The xfa.host.exportData() is really the Acrobat JavaScript function "doc.exportXFAData()" under the covers. It will work in Reader if the path is not specified. In order to use a path the form has to be enabled with "Export" rights, which aren't included in the Rights Acrobat 8 applies for free.

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

LynPrice
Registered: Jan 3 2006
Posts: 9
Thank you for your suggestions, but I still need more help

" In order to use a path the form has to be enabled with "Export" rights, which aren't included in the Rights Acrobat 8 applies for free. "

Are you saying it this won't work with the Reader rights being enable via Acrobat 8 pro? Is there something additional that needs to be purchased in order to do this?

I tried both of your suggestions. In Pro it works fine, but after I Reader enable it and try it out with Reader nothing happens when I press the button.

Any other suggestions?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The Adobe LiveCycle Rights server applies any and all Reader Enabling Rights. But it is very very expensive.

There is another option, the Adobe Document Center.

http://www.adobe.com/products/onlineservices/documentcenter/

This is much cheapter. It's basically the LiveCycle Rights Server as an online service.

If you don't like either of these options, then there is a way around the Reader rights problem. But it's awkward. Submit the data to email. When the user presses on the submit button, it will bring up a new email in the user's email client. The XDP file will be an attachment to the email. All the user needs to do is save the XDP file to thier local hard drive. Did I say this was an awkward methodology? But it works.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script