pdf2image, popplerを利用してpdfを画像変換したいと考えております。
pdf2image,popplerをインストールし、下記のコードを実行しました。
from pdf2image import convert_from_path, convert_from_bytes images = convert_from_path('sample.pdf', poppler_path='/usr/local/Cellar/poppler/20.10.0/bin/pdfinfo') len(images)
エラー内容
NotADirectoryError: [Errno 20] Not a directory: '/usr/local/Cellar/poppler/20.10.0/bin/pdfinfo/pdfinfo' PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?
ディレクトリは存在しており、pdfinfoのexecも存在しておりパスも通してあるのですが、
エラー内容を解消できずにおります。
同類の質問・回答についても参考に対応してみましたが、自己解決できずおります。
https://teratail.com/questions/208204
稚拙な質問かとは存じますが、ご教示いただけましたら幸甚です。
何卒よろしくお願い申し上げます。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。