Wednesday, July 16, 2008

Converting html to pdf

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

3 comments:

  1. that's really a fantastic post ! ! added to my favourite blogs list..

    ReplyDelete
  2. I have been reading your blog last couple of weeks and enjoy every bit. Thanks.

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...