Highlighted

Converting PDF file to XML

Avatar

Guest

04-12-2008

I am trying to maka a PDF form which a user can fill while being offline, but later he needs to convert this form into XML file to send the data back to us.

but where I am struck is with how to let user convert this form to a xml file with ease

Replies

Highlighted

pguerett

04-12-2008

You cannot convert the file to XML per se but you can export the data out of the form to an XML file. You can do this by using the Forms/Manage Form Data/Export Data.
Highlighted

Avatar

Guest

05-12-2008

well i got your point, bt wht i wnt is that the user clicks a button, and the data of the form is exported to a XML file.........how cld i do this??
Highlighted

pguerett

05-12-2008

On the click event of the button put the code:



xfa.host.exportData("", false)



The user will have to choose a filename. You cannot just save a file programmatically without the users OK.
Highlighted

Avatar

Guest

06-12-2008

yes i get your point....k its fine if the user provides the xml files name....bt wht to do next....i m a newbie into this task
Highlighted

aoatak

07-12-2008

Basically, you have several options for submitting form data to the server for further processing:

-You submit your form by email

-You can submit through a webservice

-You can make an HTTP submit



If you submit your form as PDF you can extract its data using "Export Data" operation of LC Forms. Are you using LC Components on the server side or have custom application? Can you specify what kind of solution do you need?



Oguz

http://www.kgc.com.tr
Highlighted

Avatar

Guest

07-12-2008

wht i actually require.....is as follows....

-the user downloads the form.....

-fills the form at his ease......even if he is offline, i mean he doesnt need to connect to internet to fill this form.

-then later he export the data to an XML file.....by the use of an button on the form which lets it to make a XML file on his local computer...while he is still offline......

-then he uploads the XML file on the website.....

-from here onwards i read the data from the XML file and send the data to database server.....



this is all dat i require
Highlighted

pguerett

19-12-2008

You can export the data out of the form by using the Forms/Manage Forms Data/Export Data menu in Acrobat or you can add a button to the form and use this command on the click event:



xfa.host.exportData("", false);



This will allow the user to choose a location to store the xml file that will represent the data in the form.