Here's the problem: There's a website that I often need for reference and I would like an offline version that also works in mobile devices, a PDF comes to mind.
I can make an offline copy of the HTML version with wget, that's not a the problem.
What I'd really like is a way to transform all the HTML pages into a single PDF with the internal links still working. So, a link that would have referred to another URL on the web version should then refer to the corresponding page in the PDF.
Ideally there should also be a way to generate a table of content to put into the PDF.
How can I achieve this?
Bash/Python/ruby/whatever scripts and other command line stuff are welcome, too.
(I'm on OSX 10.9 by the way.)