在Ubuntu下將chm文件轉(zhuǎn)成pdf格式的方法

2013-04-25 09:21:01來源:Linux Today作者:

在Ubuntu下將chm文件轉(zhuǎn)成pdf格式總共分為三個(gè)步驟:1。把冰箱門打開 2.把大象裝進(jìn)去 3.把冰箱門關(guān)上

在Ubuntu下將chm文件轉(zhuǎn)成pdf格式總共分為三個(gè)步驟:1。把冰箱門打開 2.把大象裝進(jìn)去 3.把冰箱門關(guān)上

開個(gè)玩笑,不過確實(shí)是3個(gè)步驟

  • 1.將chm提取出html文件:
  • 2.將html按頁排序
  • 3.轉(zhuǎn)換成pdf

在Ubuntu下進(jìn)行如下操作:

1.安裝libchm-bin,  htmldoc

sudo apt-get install libchm-bin htmldoc

2.提取出html文件

extract_chmLib <path to the chm file> <directory for the resulting HTML files>

3.轉(zhuǎn)換成pdf

htmldoc -t pdf13 --webpage -f myFile.pdf *.html

http://code.google.com/p/chm2pdf/
 

關(guān)鍵詞:chmpdfUbuntu

贊助商鏈接: