終端命令中輸入:
1.brew search pdf ? ? ? ?查找,從brew源中查找PDF相關(guān)程序
2.brew install? pdf2htmlex -y ? ? ??安裝pdf to html程序 (-y表示同意)
3.pdf2htmlex? --help ? ? ? ? ?查看pdf2htmlex程序用法及參數(shù)設(shè)置
? ? ? ? 語法:pdf2htmlEX [options] <input.pdf> [output.html]? 其中 [ ] 中括號中的為可選項(xiàng),轉(zhuǎn)換的文件pdf為必填項(xiàng)
4.例如: pdf2htmlex? --dest-dir=/www? ~/Documents/index.pdf? index.html ? ? ? ? ?
? ? ?設(shè)置了目的文件目錄(--dest-dir) - 需要轉(zhuǎn)換的文件及目錄(index.pdf) - 轉(zhuǎn)換后的文件(index.html) 前后位置隨意