Wednesday, October 5, 2011

Converting CHM to PDF

I got chm2pdf working.  It came from google code, and needed chmlib, pychm, and htmldoc.  chmlib and htmldoc I installed using brew, and pychm I got from its home page.  pychm installed nicely with just "python setup.py build" and "python setup.py install".  Same for chm2pdf.  Really couldn't have been easier.

Then just "chm2pdf --format pdf14 --color --webpage filename.chm output.pdf" worked.  The --book option does not work, but the resulting pdf was complete with chapters, images, and everything.  It opens nicely with Preview, which is very cool since Preview is capable of a fairly full featured set of annotations which can be saved to pdf files.

No comments:

Post a Comment