NOTE: Some CHM files may be opened using a Web browser, while others can only be opened with a CHM editor or CHM viewing program.
Linux don`t have built-in support for handling CHM files, but it's very simple to convert a CHM file to a PDF file in Linux.
Installing chm2pdf :
debian/ubuntu: sudo apt-get install libchm-bin
fedora/redhat: sudo yum -y install chmlib
OpenSuse: use "1-click" installer to install chm2pdf - here
In order to convert a CHM file to it’s PDF equivalent, all you need to do is issue this simple command:
chm2pdf (--book / --webpage) [options] input_filename [output_filename]
Either '--book' or '--webpage' MUST be given! Only one of the two options can be present, not both!
chm2pdf supports most command line htmldoc options. For a full summary usage, type chm2pdf --help at the command line.
After the execution of above command you will see a pdf file in the same directory which is the PDF equivalent of the CHM file you just converted.
4 comments:
In Fedora you must install chm2pdf (chmlib) will be installed as a dependency for chm2pdf
use gnochm
It doesn't work: Traceback (most recent call last):
File "/usr/bin/chm2pdf", line 24, in
import chm.chm as chm
ImportError: No module named chm.chm
same for me under OpenSUSE 12.1:
It doesn't work: Traceback (most recent call last):
File "/usr/bin/chm2pdf", line 24, in
import chm.chm as chm
ImportError: No module named chm.chm
Post a Comment