Does xfa.host.exportData work from Reader? If so, how do I set it up.
I'm a newbie to the pdf world, trying to use livecycle and javascript to create a form that will produce an xml file that will then be processed by another application.
Does xfa.host.exportData work from Reader? If so, how do I set it up.
I'm a newbie to the pdf world, trying to use livecycle and javascript to create a form that will produce an xml file that will then be processed by another application.
In this case, the "exportXFAData" function can only be executed from a privileged context, and addtionally, if the document is in Reader, it must have "Form Save Rights".
Here's the problem. The XFA reference doesn't say you need to execute the function from a privileged context. It says the form has to be certified. Certifying a PDF gives it privilege as long as the certification is valid. Here's the problem. While form filling is ok, some form actions like hiding or showing a field can invalidate the certification. This get much worse for a dynamic LiveCycle form.
So the short answer is that it's suppose to work, but doesn't. All the restrictions they put on this stuff makes exporting data an unreasonable task for a form distributed to Reader users.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script