Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

poppler installed...reinstalled pdf2image installed....reinstalled

note: Having Python version 3 and 2 using 3...as python -V code running on 3

-----python code

from pdf2image import convert_from_path pages = convert_from_path('dhl.pdf', 500)

Location is also correct.

File "/anaconda3/lib/python3.7/site-packages/pdf2image/pdf2image.py", line 186, in _page_count raise PDFInfoNotInstalledError('Unable to get page count. Is poppler installed and in PATH?')

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

like image 452
Jalaj Chandnani Avatar asked Dec 06 '25 18:12

Jalaj Chandnani


1 Answers

I had the same issue. pdf2image has the Poppler dependency.

What you need to do is the following.

 brew install poppler

in your mac terminal.

like image 54
gabzo Avatar answered Dec 09 '25 15:12

gabzo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!