PDA

View Full Version : Sending a PDF Form with CGI?



mras
06-21-2007, 07:09 AM
Adobe Acrobat 8 adds the option to create forms and lets you send the form through the user's e-mail (as an attachment).

I was wondering if there was a way to have a completed form sent directly through the bluehost mailserver, for those people who are at a computer without e-mail (say, at a library or a school).

The Acrobat set-up gives you the ability to use Javascript, but I'm pretty much a novice with Javascript and haven't found any examples of using it to send attachments through Formmail or CGI. Anyone have any experience with this?

mras
07-16-2007, 10:40 AM
*bump*

(sorry)

areidmtm
07-16-2007, 12:04 PM
I'm not sure if anyone know what you're talking about. Can you give more details? Are you trying to create a PDF file from info inserted from a form on the fly?

mras
07-18-2007, 05:43 AM
Sorry for being vague. Acrobat 8 gives you the ability to make PDF forms that lets people complete the form with just the free Acrobat reader and save the completed form.

I've created a form and included a 'Submit' button that, when clicked, saves the completed form as a PDF, launches the user's e-mail application and makes it an attachment to an e-mail (addressed to me).

The problem is that this form is on our website, and most people are accessing it through computers that have no e-mail application (like at a public library). Since our bluehost accounts come with access to cgi scripts and form mail, I was wondering if anyone had any experience with using this to send completed PDF forms without going through the user's e-mail. Like through formmail or something?

areidmtm
07-18-2007, 08:41 AM
I don't think you can do exactly what you're talking about. It sure wouldn't be as easy.

If it's just a simple form, why don't you create a web form had have it email you from your website? It wouldn't be in PDF but the info would still be there and if you needed to you could PDF the email that you got from the web form.

Or if you know PHP enough, PHP can make PDF files on the fly.

felgall
07-18-2007, 01:14 PM
It can be done but not easily.

You would have to set up something that uploads the completed PDF to the server first. You would then need to have the processing that generates the email insert that file as an attachment into the email.

You would probably need to use the FTP modules in PHP to do the first step and that might not be installed on the hosting here.

mras
07-23-2007, 01:05 PM
Thanks for your info. I suspected there might be a way to do it, but it sounds like it's way over my head.