Generating PDF from HTML is not a trivial task. There are several sites that can convert existing HTML pages to PDF documents, but these can only be used if the pages are publicly accessible.

http://www.phpclasses.org/package/2905-PHP-Convert-HTML-to-PDF-using-Web-services.html