终端命令中输入:
1.brew search pdf 查找,从brew源中查找PDF相关程序
2.brew install pdf2htmlex -y 安装pdf to html程序 (-y表示同意)
3.pdf2htmlex --help 查看pdf2htmlex程序用法及参数设置
语法:pdf2htmlEX [options] <input.pdf> [output.html] 其中 [ ] 中括号中的为可选项,转换的文件pdf为必填项
4.例如: pdf2htmlex --dest-dir=/www ~/Documents/index.pdf index.html
设置了目的文件目录(--dest-dir) - 需要转换的文件及目录(index.pdf) - 转换后的文件(index.html) 前后位置随意