下电子书最蛋疼的就是下到 chm,在 ubuntu 下将 chm 转为 pdf 只需3步:
1.把冰箱门打开 2.把大象装进去 3.把冰箱门关上
开个玩笑,不过确实是 3 个步骤
1.将chm提取出html文件:
2.将html按页排序
3.转换成pdf
在 ubuntu 下进行如下操作:
1.安装libchm-bin, htmldoc
sudo apt-get install libchm-bin htmldoc
2.提取出html文件
extract_chmLib
3.把转换成pdf
htmldoc -t pdf13 --webpage -f myFile.pdf *.html
就此搞定 如果希望把chm 转给 kindle 看
第三步可以使用以下命令:
htmldoc -t pdf13 --color --webpage --compression --fontsize 18.0 --browserwidth 824 --right 5mm --left 5mm -f ../myBook.pdf *.html
Myblog: www.darkof.com
加入我们 /
来 Wow!Ubuntu 问答社区参与更多讨论
5 Responses to 只需 3 步将 chm 转为 pdf
vinny
November 14th, 2012 at 10:43 am
在我看来,chm固然不好,但在一点上比pdf强太多了——那就是chm可以方便地转为其它电子书格式,epub、mobi都可以,拿来放在手机上看很舒服。pdf几乎无法完美转换。
funicorn
November 14th, 2012 at 8:56 pm
哪有那么容易,htmldoc转出来的一大堆乱码。
chenge
November 15th, 2012 at 4:17 am
相当不错,谢谢。最后那个是彩色么,好像没效果。彩色标题就好了。
书痕
November 19th, 2012 at 8:51 am
Ubuntu下的chmsee挺好用的
» 未找到页面 Wow! Ubuntu
November 27th, 2012 at 10:45 am
[...] 只需 3 步将 chm 转为 pdf [...]
» 未找到页面 Wow! Ubuntu
November 27th, 2012 at 10:45 am
[...] 只需 3 步将 chm 转为 pdf [...]