cannot install pdftotext on windows because of poppler

。_饼干妹妹 提交于 2019-12-08 19:25:31

I struggled with exactly the same and wasn't able to compile a solution.

A workaround I'm using is running pdftotext.exe which is installed with miktex 2.9 (I'm already using this for latex).

Identify the path to pdftotext.exe after installing miktex. Then you can run it with the subprocess module.

Import subprocess
Subprocess.call([path/pdftotext.exe, 
options, file.pdf])

Switch options with the option you need.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!