[Python] Converting PDF to PNG with Python (without pdf2image)

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

  1. Stack

    Stack Membro Participativo

    I want to convert a PDF (one page) into a PNG file. I installed pdf2image and got this error:


    popler is not installed in windows.
    ​

    According to this question: Poppler in path for pdf2image, Poppler should be installed and PATH modified.

    I cannot do any of those (I don't have the necessary permissions in the system I am working with).

    I had a look at OpenCV and PIL and none seems to offer the possibility to make this transformation: PIL (see here https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html?highlight=pdf#pdf) does not offer the possibility to read PDFs, only to save images as PDFs. The same goes for OpenCV.

    Any suggestion on how to make the PDF to PNG transformation? I can install any Python library but I can not touch the Windows installation.

    Continue reading...

Compartilhe esta Página