HTML2PDF is a HTML to PDF converter written in PHP4 (use FPDF), and PHP5 (use TCPDF). It allows the conversion of valid HTML 4.01 in PDF format, and is distributed under LGPL.
This library has been made to assist in the creation of PDF files, not to directly convert an HTML page. You can not use the <html>, <head>, <body> tags.
You can try example in Resume Builder