Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Convert CHM file to PDF using chm2pdf

📅 2013-Oct-04 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

CHM is typically used for documentation of software and libraries or for books. It can sometimes be convenient to convert a CHM file to PDF file. For example, you might prefer a PDF file to use on Linux, ebook readers or tablets. This conversion can be performed easily using chm2pdf.

  1. Install the chm2pdf package:
$ sudo apt-get install chm2pdf
  1. Convert the CHM file to PDF using the chm2pdf command:
$ chm2pdf --book foobar.chm

This produces a foobar.pdf file. We provided the option --book in the above command. Alternatively, you can provide either --continuous or --webpage too. These options hint to chm2pdf about the structure of the CHM file. One of these three options has to be provided.

Tried with: chm2pdf 0.9.1 and Ubuntu 12.04 LTS