In fact, there is a much simpler way to accomplish the same thing: a pipe of html2ps and ps2png!
html2ps is contained in every distribution. It offers a variety of features:
Many possibilities to control the appearance, mostly done using configuration files.
Support for processing multiple documents, also automatically by recursively following links.
A table of contents can be generated, either from the links in a document, or automatically from document headings.
Configurable page headers/footers, that for example can contain document title, URL, page number, current heading, and date.
When converting the PostScript® document to PDF - using some other program such as version 5.0 or later of Aladdin Ghostscript®, or Adobe AcrobatDistiller® - the original hyperlinks in the HTML documents will be retained in the PDF document.
Automatic hyphenation and text justification can be selected.