歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu下只需 3 步將 chm 轉為 pdf

Ubuntu下只需 3 步將 chm 轉為 pdf

日期:2017/2/28 15:28:51   编辑:Linux教程

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

Copyright © Linux教程網 All Rights Reserved