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/
not working to real html.....
Beware! This program has the Xerox compression bug (google it) which can alter the pdf in ways you will not notice. Everything seems to work great, but then portions of the output are moved around or replaced in surprising ways. I'm rating this poor in every way to get your attention, even though it is very nice except for this bug. Use wkhtmltpdf instead. It is being actively developed and does not appear to suffer from this problem.