hi, For an insurance company, I've created PDF forms of their various insurance applications. These will be available on their website (when it is done). Each form, being in PDF, looks exactly like the printed version of the application. The idea is that a user fills it out online, hits the (visible but unprintable) "Submit" button at the bottom of the form, and the entire completed PDF is sent to the company. That way they can print it out, and carry on with their current paper filing system. I experimented with using a "mailto:..." URL for the Submit button, but that requires an external mail program. It also gives the attached PDF a random temp filename. Therefore, I'd like to send the PDF to a python script, change the name, and email it to the company from there. I played with it a bit, and I can reach the destination script, but I have no idea what happens to the PDF. I expected it to show up in file, but nothing. i supose it's possible to access the data in the REQUEST object and redirect it into file but how? Can anyone tell me what to do from here? Thanks! fabien
Fabian, I do something very similar but I only send the data. In the pdf's submit action, I send the form as html, not the entire pdf. On the server, I save the form data to a database. Then, when someone wants to print that particular form, the data are retrieved from the database and are passed back to the pdf form. You have two options for getting data back into the blank pdf: Adobe's fdf format or xml. I'm using xml; they call it an xfdf file. The format is easy to understand (fill out a form and save the form data as xml from within Acrobat -- then examine the file). You create the xml which includes your data values, and you include a link to the actual pdf file you want to receive the data. In my setup, the xml file is sent to the browser, which loads the pdf plugin, which fetches the pdf and fills in the values.
Therefore, I'd like to send the PDF to a python script, change the name, and email it to the company from there. I played with it a bit, and I can reach the destination script, but I have no idea what happens to the PDF. I expected it to show up in file, but nothing. i supose it's possible to access the data in the REQUEST object and redirect it into file but how?
I had trouble getting at the actual file data in the REQUEST object myself. My guess is Adobe is doing something odd. Good luck, Bill
participants (2)
-
bill tolbert -
fbarsukow@fede.generali.fr