I have been working in a project where the output has to be a PDF also, i was searching tools, to convert from HTML to PDF, i found a lot of tools (html2ps looks very good), but the simplest solution that i've found is to use LATEX. I generate a TEX file and call pdflatex and i obtain the output in PDF with the cover, the table of contents, chapters, etc.