【发布时间】:2021-01-14 08:20:13
【问题描述】:
我想将 PDF 文件转换为图像文件(.jpg 或 .png ...)。我找到了这个解决方案,但总是报错:
from pdf2image import convert_from_path
pages = convert_from_path('sample.pdf', 500) # I have tried with full path, and with different num of pages
我得到的错误:
pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?
我该如何解决这个问题?
如果有任何其他方法可以将 pdf 转换为 .jpg,请告诉我。
【问题讨论】:
-
这能回答你的问题吗? Poppler in path for pdf2image
-
我什至无法安装 poppler !你知道吗,有没有其他方法可以做到这一点?
-
您能相应地更新您的问题吗?我们谁都没有水晶球。 ;-)
-
@ChristianBaumann 请检查:stackoverflow.com/questions/64101224/…