我在 docker 映像上运行 debian buster。我已经安装了每个 poppler 包来排除任何异常情况。我已经明确添加了所有 poppler 文件的路径,包括目录等。
pdf2image
我已按照此处网站上提供的文档进行操作: https ://pdf2image.readthedocs.io/en/latest/installation.html#
并确认已安装 poppler 并使用推荐的方法在路径上:
root@1018c6c180a9:/# pdftoppm -h
pdftoppm version 0.71.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftoppm [options] [PDF-file [PPM-file-prefix]]
-f <int> : first page to print
-l <int> : last page to print
-o : print only odd pages
-e : print only even pages
...
在 docker 映像中运行时出现以下错误:
pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?
我仍然认为我犯了错误。但是,似乎搜索中弹出的结果表明这有点未解决,为 poppler 库和 python 包的一些(但不是全部)用户实现了工作场景pdf2image
。
我对我使用的 debian 映像或 pdf2image 版本没有任何限制。
是否有可用的配置,这个问题是否已解决,或者是否存在错误的热点,每个人似乎都有类似的问题(我也陷入了同样的陷阱)?
python3 版本 3.8