I would like to convert an online book (linked html files) into a pdf file.
I tried the two-step way in http://kmkeen.com/mirror/2009-02-05-14-00-00.html
First, download the html files by
wget -nd -mk http://www.unknownroad.com/rtfm/gdbtut/
But it has downloaded a lot of nonrelated files. So I have to remove the unrelated files.
Then, I try to convert the downloaded html book into a pdf file:
htmldoc --webpage -f gdb.pdf html/index.html html/*.html
but the order of pages in the pdf file isn't correct.
I wonder what good way to download and convert an online book (linked html files) into a pdf file?
My OS is Ubuntu 12.04.