Hi All,
I am trying to save an editable PDF form after it has been filled up. But every time i click on the submit button, the pdf form is returned. Instead i want this file to be saved on the server.
How can i do this using PHP? If not PHP is there any other way out?
Here's my situation -
1. An editable PDF will be stored on the server which will be accessible by many clients.
2. After each client fills up the form, on clicking submit, the form needs to be saved back on to the server in two states - one editable and other non editable(layers flattened)
I've been partially successful in doing this using javascript but only on my machine. Because of the restriction to store the folder level trust functions in Javascripts folder of the application, I cannot replicate the same on server.
Any help will be greatly appreciated
Regards,
Sameer
Your users could save a filled-in copy of the PDF, then upload it using a server script (of the sort used to submit photos or file attachments to blogs, etc.), but that cannot be done directly from within the PDF, and your clients cannot flatten the form unless they are using Acrobat. Flattening is not available in Reader.
The correct way to do this is to submit the form to a server-side script by sending the form data as a POST action, and have a CGI script on the server which processes that data. There are many libraries for PHP, Perl, Java etc. that can take your data and create a new PDF file from it, if that is what you need, but this is NOT a job for Acrobat.
I also note your phrase "many clients". Remember you are only permitted to receive 500 responses per document, if you exceed that you will violate your license with Adobe.