Q&A: How do I turn a html page into a pdf using PHP scripts?

Question by Justin M: How do I turn a html page into a pdf using PHP scripts?
I have a php form that sends the information to a page that displays all the results in a nice html page. I need for the server to convert the result page to a pdf and then send it to an email. I think there is a way to do this without installing any files onto the server but I have forgot what the php function is that does this. How would I go about doing this?

Best answer:

Answer by treemonster
this can be done using php pdf library, you need to check whether your server has this library
the following tutorial would help you
http://articles.sitepoint.com/article/generate-pdfs-php

What do you think? Answer below!

Get the book now