Wednesday, April 22, 2009

Converting the chm files

While I am sure that chm files have their use in the Windows world (as help files), I do not find them all that useful on the Linux side.  That said, I decided to go about converting some chm files that I have acquired into pdf files, which is a more acceptable format if you ask me.

To do that, you are going to have to install "chm2pdf".  I am working on Ubuntu 8.10 and it is a pretty simple install.  As root, execute the following:

apt-get install chm2pdf

After that finishes, you will now be able to convert the files you have.  It took me a little playing with the program to learn how to use it, but it wasn't all that bad.  The manual page gives the options, but you have to run it once to see what is really required.

Here is the command that I used to convert my chm files to pdf:

chm2pdf --webpage -f file.pdf file.chm

The "-f" option allows you to supply the output name.  Feel free to play with the command, but this is what worked for me.  Happy converting!

No comments:

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.