Showing posts with label chm. Show all posts
Showing posts with label chm. Show all posts

Thursday, July 30, 2009

Convert CHM to PDF on Ubuntu

By default, you cannot view CHM file in Ubuntu. To view the CHM file, you can use GnoCHM. However, I found that GnoCHM is not so stable and crash a lot. Hence, another option is to convert it to PDF. What you need is the chm2pdf and python-beautifulsoup packages.

Install the packages

sudo apt-get install chm2pdf python-beautifulsoup

Convert the CHM file to PDF

chm2pdf --webpage --beautifulsoup filename.chm
You can even change colour, font, and margin of the generated PDF file. For more information on how to do so, please invoke
man chm2pdf
command on the terminal.

Wednesday, July 29, 2009

View CHM file on Ubuntu

Microsoft Compiled HTML Help (CHM) is a common format for e-book and online documentation.

To view CHM file in Ubuntu, you need to have a CHM viewer installed. GnoCHM is one of the CHM file viewer, designed to integrate nicely with Gnome, using PyCHM.
GnoCHM CHM Viewer
GnoCHM can be installed by pasting the following command in the terminal.
sudo apt-get install gnochm
The shortcut will appear in Applications > Accessories menu as "CHM Viewer".
Access GnoCHM from the menu

This article discuss a simple way to view CHM file. If you know a better CHM viewer other than GnoCHM, please leave a comment.