1. Download chm2pdf by clicking [Here].
3. Now extract the downloaded file.
4. Open your Terminal and browse to the folder you extracted and run:
5. sudo python setup.py install
Now to use it is very simple:
In Terminal, type: chm2pdf filename.chm
You need these packages installed and working: