Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send webform as PDF attachment

Status
Not open for further replies.

Skippie1

Technical User
May 7, 2012
29
ZA
Good day,

I have a web form done for somebody. I can send the form as an email but I want to know if it is possible to send the web form as a PDF or WORD attachment to an email address when somebody submits the form.
 
Hi Skippie1,

I have code that does this but it is on my home dev box. For now maybe have a look at this site to see if you can get some ideas.


I think the library I used originally was tcpdf but it was a while ago now.
I'll find the code samples and update this thread later.

petrosky



Remember- It's nice to be important,
but it's important to be nice :)
 
yes there are many ways to achieve this, depending on what type of output you use.

if you are running linux the best, in my experience, is wkhtmltopdf. you just point it programmatically at a web page and it renders it in pdf for you. the web page, in your case, would be a browser representation of your webform. wkhtmltopdf will accommodate css styling and javascript and canvas objects because it is based on the webkit engine.

there are also manual ways of creating pdf's such as that which petrosky posted above.
 
Hi Skippie1,

Unfortunately I don't have access to this project after all.
Hopefully you manage to get the site to do what you need.

Regards,

petrosky

Remember- It's nice to be important,
but it's important to be nice :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top