Brew安装:
$ brew install poppler
# 默认输出 (生成多个互相嵌套的html文件,以及多个图片
$ pdftohtml sample.pdf sample.html
# 生成"复杂"排版,其实就是更精确排版的意思 --complex
$ pdftohtml -c sample.pdf sample.html
# 指定第一页至最后一页区间:first-last
$ pdftohtml -f 1 -l 2 sample.pdf sample.html
Brew安装:
$ brew install poppler
$ pdftohtml sample.pdf sample.html
$ pdftohtml -c sample.pdf sample.html
$ pdftohtml -f 1 -l 2 sample.pdf sample.html