Ubuntu下只需 3 步将 chm 转为 pdf


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

相关内容

    暂无相关文章