Reality-Loop

Converting html to pdf

July 16, 2008 | 0 Minute Read
This post was originally posted on my old blog.

I wanted to put the content of the SCEA 5 Study Guide in one single pdf document.
This is what I did:

Download all the files used by the page with wget:
wget -r http://java.boot.by/scea5-guide/

Convert the downloaded html-pages into one pdf with htmldoc:
htmldoc index.html pr01.html pt01.html ch*.html pt02.html --outfile scea5-guide.pdf --footer /

On the Mac you can easily install wget and htmldoc with fink:
fink install wget htmldoc-nox