|
|
From your package manager
As of Ubuntu 8.04, chm2pdf is in the universe repository. You can therefore install chm2pdf from your package manager. The same holds for Debian testing.
It also seems that it is included in FreeBSD ports. An unofficial Gentoo ebuild is available (check bugs.gentoo.org)
From source
Dependencies
If you want to install chm2pdf from source, you need those packages installed and working: Gentoo:
- chmlib
- pychm
- htmldoc
Ubuntu/Kubuntu/Debian: Anyway, you should need:
- libchm
- libchm-bin
- libchm-dev
- python-chm
- html-doc
- htmldoc-common
Analogous packages should exist on most other Linux/BSD distributions. It seems that
Users have reported success on Mac OS X, however currently this is unsupported.
On Fedora, it has been reported that the chmlib package is missing some essential files. You need to look for chmlib-bin or to compile chmlib by hand.
If you install chmlib from source, do not forget to use the --enable-examples on chmLib, otherwise this script will throw a bunch of exceptions, and will fail.
If you use Mac OS X, and you use darwin ports (port on the cmdline), be aware that the chmlib will NOT be built with this option. You can, however, separately download chmlib and build it yourself with this option, install it, and then re-run the script.
Install
- Download the archive
- Unzip it (tar -xzvf chm2pdf-x.x.x.tar.gz)
- Enter the directory
- Become root
- Type "python setup.py install"
- Enjoy
PLEASE AVOID POLLUTING THIS PAGE WITH COMMENTS If you have installation problems, use the Google group.
Sign in to add a comment

Dependencies
On my Ubuntu Feisty Fawn I need pdftk installed.
Before these steps you need two other things installed. pychm module ( http://gnochm.sourceforge.net/pychm.html ) and chmlib ( http://www.jedrea.com/chmlib/ )
chmlib needs to be configured with ./configure --enable-examples
Additionally you need htmldoc ( http://freshmeat.net/projects/htmldoc/ ) and pdftk ( http://www.pdfhacks.com/pdftk/#packages )
On Ubuntu Gutsy I had to run following command: sudo ln -s /usr/local/lib/libchm.so.0 /usr/lib/libchm.so.0
A Ubuntu walk through...
http://www.jedrea.com/chmlib/
Finally follow the procedure above to install chm2pdf
PS:use
I have made many changes to the script! Read the whole story on my Forum at:
How to convert CHM to PDF with chm2pdf in Linux
For example, now you can use all options of htmldoc (almost 100 of them!) from the command line!
Download it from:
http://www.karakas-online.de/downloads/chm2pdf-0.9.tar.gz
Type
chm2pdf --help
for a quick help. Usage examples and all details in the Forum thread above.
Enjoy! :-)
Chris Karakas http://www.karakas-online.de
I have built a Debian package for chm2pdf. It is available here: http://ximaera.name/ximaera/files/chm2pdf_0.9_all.deb .
Hope it will be useful for those guys who want to keep all packages' dependencies on their hard disk, not in their heads -)
Feel free to contact me for any issues at ximaera@gmail.com Artyom Gavrichenkov
THIS PRODUCT IS GAY AND DOES NOT WORK BECAUSE ITS NOT ON WINDOWS
Thanks Guy! Wonderful! :-) A small note. It doesn't work if the filename contain any space.
Alessandro
zioalex try putting the entire filepath in quotes, or escaping the space character ('\ ' instead of ' ').
=on debian etch=
page_filename = /tmp/chm2pdf/orig/1111/ Traceback (most recent call last):
IOError: 21? Is a directoryHow do I do this on OS X 10.5 ?