只需 3 步将 chm 转为 pdf

14 Nov
2012
# 作者: Adam Wen / / 本文采用CC BY-NC-SA 2.5协议授权,转载请注明本文链接

下电子书最蛋疼的就是下到 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

Avatar

vinny

Google Chrome 23.0.1244.0 Google Chrome 23.0.1244.0 Windows 7 Windows 7

November 14th, 2012 at 10:43 am

在我看来,chm固然不好,但在一点上比pdf强太多了——那就是chm可以方便地转为其它电子书格式,epub、mobi都可以,拿来放在手机上看很舒服。pdf几乎无法完美转换。

Avatar

funicorn

Firefox 16.0 Firefox 16.0 Ubuntu Ubuntu

November 14th, 2012 at 8:56 pm

哪有那么容易,htmldoc转出来的一大堆乱码。

Avatar

chenge

Google Chrome 22.0.1229.94 Google Chrome 22.0.1229.94 GNU/Linux GNU/Linux

November 15th, 2012 at 4:17 am

相当不错,谢谢。最后那个是彩色么,好像没效果。彩色标题就好了。

Avatar

书痕

Google Chrome 18.0.1025.142 Google Chrome 18.0.1025.142 Windows 7 Windows 7

November 19th, 2012 at 8:51 am

Ubuntu下的chmsee挺好用的

Avatar

» 未找到页面 Wow! Ubuntu

WordPress 3.4.2 WordPress 3.4.2

November 27th, 2012 at 10:45 am

[...] 只需 3 步将 chm 转为 pdf [...]

Avatar

» 未找到页面 Wow! Ubuntu

WordPress 3.4.2 WordPress 3.4.2

November 27th, 2012 at 10:45 am

[...] 只需 3 步将 chm 转为 pdf [...]

top