在我的Win10系统上安装了poppler之后,我正在使用conda env中的pdf2image。
我尝试使用poppler_path方法中可用的convert_from_path参数,但它似乎不起作用。
有在pdf2image上有过Win10经验的人从conda打来电话吗?谢谢杰罗姆
发布于 2020-01-07 12:29:25
这就是我在Windows 10上所做的,它对我起了作用:
1)从http://blog.alivate.com.au/poppler-windows/下载最后一个版本
2)将其内容提取到"C:/Program (x86)/Poopler/“
3)使用首选方法安装pdf2image包依赖项(我的版本为1.11.0)
4) Python脚本:
from pdf2image import convert_from_path
file = "my_pdf.pdf"
pages = convert_from_path(file, 200, poppler_path='C:/Program Files (x86)/Poopler/poppler-0.68.0/bin')
for i, page in enumerate(pages):
<process the page...>希望能帮上忙!
https://stackoverflow.com/questions/59080941
复制相似问题