[Python] How to convert the pdf file to jpeg images

Discussão em 'Python' iniciado por Stack, Agosto 10, 2025.

  1. Stack

    Stack Membro Participativo

    Here is my program, I want to convert pdf file into jpeg images, I wrote below code I am getting the PIL.PpmImagePlugin object how can I convert to jpeg format can you please help me. Thank you in advance.

    from pdf2image import convert_from_path
    images = convert_from_path('/home/cioc/Desktop/testingFiles/pdfurl-guide.pdf')
    print images

    Continue reading...

Compartilhe esta Página