Python-Remove-Watermark icon indicating copy to clipboard operation
Python-Remove-Watermark copied to clipboard

Is poppler installed and in PATH ?

Open ghost opened this issue 2 years ago • 4 comments

求助,报错: Is poppler installed and in PATH ? 在网上搜索了一番没有找到解决办法,已经按照readme安装了需要的pip包。

Traceback (most recent call last):
  File "/Users/kasusa/Documents/GitHub/Python-Remove-Watermark/watermark.py", line 58, in <module>
    images = convert_from_path('/Users/kasusa/Documents/GitHub/Python-Remove-Watermark/a.pdf')
  File "/Users/kasusa/Library/Python/3.9/lib/python/site-packages/pdf2image/pdf2image.py", line 98, in convert_from_path
    page_count = pdfinfo_from_path(pdf_path, userpw, poppler_path=poppler_path)["Pages"]
  File "/Users/kasusa/Library/Python/3.9/lib/python/site-packages/pdf2image/pdf2image.py", line 484, in pdfinfo_from_path
    raise PDFInfoNotInstalledError(
pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?

ghost avatar Nov 01 '22 03:11 ghost

Any resolution to this problem @kasusa ?

abdulmukit-n avatar Nov 01 '22 19:11 abdulmukit-n

Unable to get page count. Is poppler installed and in PATH?

turingzz avatar Nov 09 '23 11:11 turingzz

I don't see such a problem, if there is a scene, maybe I can help

ben0i0d avatar Jun 28 '24 18:06 ben0i0d

install poppler https://github.com/oschwartz10612/poppler-windows/tags , and then

images = convert_from_path('cuda-graph-introduction.pdf',
                           poppler_path=r'E:\python_workspace_transformer\Python-Remove-Watermark-master\poppler-24.07.0\Library\bin')
# images = np.array(images)
index = 0

lix19937 avatar Sep 16 '24 14:09 lix19937

hello , i've done this. I rewrite with pymupdf to remove poppler. Please look my repo.(of course , the PR #7 )

ben0i0d avatar Sep 30 '24 09:09 ben0i0d