I am trying to convert pdf to image using pdf2image module on Google Colab. I have downloaded the latest version of poppler and also installed poppler-utils. In convert_from_path() , I mentioned the correct path to poppler's bin directory, still I'm getting FileNotFoundError and PDFInfoNotInstalled Error.
Refer to the attached Screenshot for more clarity. Screenshot of Error
AFAIK, Google colab is running a Ubuntu operating system, you can discover that by running the
uname -acommand.If you build poppler, the pdf* binaries are installed in
/usr/binand pdf2image can resolve them automatically.Discover the operating system name.
Install python dependencies
Install some dependencies for building poppler
Download and extract poppler source code.
Compile and install poppler.
Work with the PDF file