Recently a CHM plug-in appeared for firefox which should be some help.
Sometimes it is still necessary to convert CHM files into other formats. While there are quite a lot of applications which could do that easily on Windows, it is still tricky for non-Windows systems.
e.g. for Mac OS X or other UNIX based OS
First you have to unpack the html files.
- Download the chmtools package.
- Unzip it: tar -zxf chmtools.tar.gz
- Go to the chmtools folder: cd chmtools
- Compile it: make
- Move the new command somewhere you can easily access it (you might have to become root to be able to do that), eg: su; cp chmdump /usr/bin
- Now it is time to unpack the CHM file, eg: chmdump file.chm newFolder
- Download the fltk source (should be version 1.1 or above)
- Unzip it, eg: tar -yxf fltk-1.1.7-source.tar.bz2
- Go to the fltk folder, eg: cd fltk-1.1.7
- Compile it: make
- It could be you need to configure the compile process for your system - have a look at their manual.
- Install the new commands (you have to become root to be able to do that), eg: su; make install
- Download the htmldoc source
- Unzip it, eg: tar -yxf htmldoc-1.8.27-source.tar.bz2
- Go to the fltk folder, eg: cd htmldoc-1.8.27
- Compile it: make
- It could be you need to configure the compile process for your system - have a look at their manual.
- Install the new commands (you have to become root to be able to do that), eg: su; make install
- Now look for the html files in the folder chmdump created.
- Go there, eg: cd newFolder
- Now you have to create a batch file containing all the html files you want to have in your pdf. Eg: ls *.thml > test.book
- Sometimes the files are not in the order you like. Use your favorite text editor to adjust that.
- Add the following two lines at the top of test.book to adjust the layout the pdf. The given format is best if you want to use the pdf file on your iLiad reader.
#HTMLDOC
-t pdf --webpage --size 12x15cm --pscommands --gray --jpeg -f test.pdf
- Run the batch file: htmldoc --batch test.book
- The result should be a pdf file called test.pdf.
No comments:
Post a Comment