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.

Install CHMLIB

#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.



Comments on: "Convert .chm to .pdf using HTMLDOC on Ubuntu" (2)

  1. Jayasankar said:

    ChmSee is an HTML Help viewer for Unix/Linux.It is based on CHMLIB and use GTK+ as its frontend toolkit. Because of using gecko HTML rendering engine, ChmSee can support rich features of modern HTML page, specially CSS.

  2. kchmviewer also can do the same thing. sudo apt-get install kchmviewer

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: