HTML2PDF is a PHP class using FPDF for the PHP4 release, and TCPDF for the PHP5 release. It can convert valid HTML and xHTML to PDF. More details and examples on http://html2pdf.fr/
HTML2PDF is now on GitHub : https://github.com/spipu/html2pdf/
script tag and some HTML tags are not working. I'm trying to convert web page to pdf but not a single web page is converting properly. This library is good to make receipt, ticket voucher, table printing etc.