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. [..]
Now since it is a proprietary format, so Linux does not have any (none that i am aware of) applications which support this format. So it is required to first convert it into the .pdf format to make it readable in Linux.
Converting a .chm file to a .pdf file is a very simple process.
#sudo apt-get install libchm-bin
Extract .html files out of .chm file
#extract_chmLib book.chm dirname
– – – – – >##book.chm = name of the .chm file.
– – – – – > ##dirname = name of the directory where you want .htmls to be extracted.
#sudo apt-get install htmldoc
Convert .htmls to .pdf using htmldoc
Add all the extracted .htmls into htmldoc and convert it to .pdf.