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

write xml data to the local system

andrewton
Registered: Jun 5 2008
Posts: 15

Hi everybody,

I create a form (like an application form) using LC Designer. The user will fill out this form. When the user clicks the Submit button, is there any way I can have Xml data stored into the user's local system instead of sending it by using the Email Submit button or HTTP Submit button?

Thanks!

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
Do not use the predefined 'Submit' button. You will have to create your own button and the code and you can use the "xfa.host.exportData()" method.

George Kaiser

andrewton
Registered: Jun 5 2008
Posts: 15
Hi gkaiseril,

I created a regular button in my form. This button was added the Click event that called a function in the script object. The method was:

function exportXml() {
xfa.host.exportData();
}

However, when the button was click nothing happened. I also changed the script to "xfa.host.exportData(, 0) but no xml file was generated.What did I do wrong?

I saw LC Help wrote "the exportData method executes only when performed on certified documents." What is a certified document?

Thank you very much for your help!
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
A certified document is a PDF with special privlages that allow certain actions that are possible security or privacy risks to be allowed to run but there is a message about the possible disclosure of personal information. Basically this prevents actions that can result in the collection of personal data not being run without prior notice to the user.

George Kaiser

diegoap
Registered: Apr 4 2008
Posts: 52
andrewton wrote:
Hi gkaiseril,I created a regular button in my form. This button was added the Click event that called a function in the script object. The method was:

function exportXml() {
xfa.host.exportData();
}

However, when the button was click nothing happened. I also changed the script to "xfa.host.exportData(, 0) but no xml file was generated.What did I do wrong?

I saw LC Help wrote "the exportData method executes only when performed on certified documents." What is a certified document?

Thank you very much for your help!
Hello!

I'm trying to do the same and I've got the same problem. Did you get an answer?

Diego Silva
http://diegosi.wordpress.com

andrewton
Registered: Jun 5 2008
Posts: 15
According to what I read from other threads in forums, exportData() is not supported by Adobe. I had to use another approach to parse PDF data and generate a XML document with those data.
adib4u2000
Registered: Feb 6 2009
Posts: 1
Hi,
I am also working on the same thing .."write xml data to the local system" Did u get any Answer .. Can u please help me on the same..

Thanks and Regards
Aditya Marla
diegoap
Registered: Apr 4 2008
Posts: 52
adib4u2000 wrote:
Hi,
I am also working on the same thing .."write xml data to the local system" Did u get any Answer .. Can u please help me on the same..

Thanks and Regards
Aditya Marla
Hi Aditya

See: http://www.adobeforums.com/webx?128@@.59b5d9a4

I hope it helps

Diego

Diego Silva
http://diegosi.wordpress.com

ripsy85
Registered: Mar 18 2010
Posts: 1
I tryed this way but on my Workstation it's ok! But if i send the PDF to someone. He tell me that it's unable to export data and he doesn't receve an error when he click on the button do not happens nothing....SORRY for my English. I'm italian!
Thanks in advanced!