Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have several small static websites that I want to turn into PDFs, CHMs, or a similar format. These websites are documentation generated by Ruby's RDoc tool. They have an index.html file and links to other static files all contained in directories up to two-levels deep.

I want to be able to view these docs on my iOS and Android devices. Neither of those devices will let me easily browse a static website so I think a better solution would be to turn these sites into a more supported format on my Ubuntu desktop and then transfer them to something portable.

share|improve this question
up vote 3 down vote accepted

You should give a try to htmldoc. htmldoc will help you to convert html source files into html, postscript, or pdf

To install htmldoc use

sudo apt-get install htmldoc

You can provide a list of files/URLs as input that can be converted to PDF.

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.