[Python] Converting PDF to Image with pdf2image does not work

Discussão em 'Python' iniciado por Stack, Abril 18, 2025.

  1. Stack

    Stack Membro Participativo

    I want to convert PDF file to image file (.jpg, or .png ...). I have found this solution but I always get an error:

    from pdf2image import convert_from_path

    pages = convert_from_path('sample.pdf', 500) # I have tried with full path, and with different num of pages


    The error that I get:

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


    How can I fix this?

    If there is any other way to convert pdf to .jpg please let me know.

    Continue reading...

Compartilhe esta Página