http://www.rustyparts.com/pdf.php
Printing webpages is great, but every browser renders a page differently. This can cause problems if you need to be able to print a page that looks the same no matter what platform or browser is being used. Additionally, PDF files can be searched and browsed as a sort of notebook, making it a useful file format for large text files.
HTML_ToPDF is a PHP class that makes it easy to convert HTML documents to PDF files on the fly. HTML_ToPDF grew out of the need to convert HTML files (which are easy to create) to PDF files (which are not so easy to create) fast and easily.