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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.