linux poison RSS
linux poison Email

Convert CHM file to PDF under Linux - chm2pdf

Microsoft Compiled HTML Help (CHM) is a Microsoft proprietary online help format. It was introduced as the successor to Microsoft WinHelp with the release of Windows 98, and is still supported in Windows 7.

Help is delivered as a binary file with the .chm extension. It contains a set of HTML files, a hyperlinked table of contents, and an index file.

The file starts with bytes "ITSF" (in ASCII), for "Info-Tech Storage Format". The format has been reverse-engineered by Matthew Russotto with assistance from Peter Ferrie and Paul Wise. Russotto's documentation is freely available at http://www.russotto.net/chm/chmformat.html.

CHM file is not recognize by Linux and cannot be open using any default application, you can either use chm viewer or convert this chm file to some other format like PDF to view

Install chm2pdf:
Open the terminal and type following command:
sudo apt-get install chm2pdf
Using chm2pdf:
chm2pdf is an command line tool, go to terminal and type following command to convert your chm file to pdf:
/usr/bin/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!


For a full summary usage, type chm2pdf --help at the command line.



2 comments:

Post a Comment

Related Posts with Thumbnails