[Python] How do I convert multiple PDFs into images from the same folder in Python?

Discussão em 'Python' iniciado por Stack, Junho 16, 2025.

  1. Stack

    Stack Membro Participativo

    from pdf2image import convert_from_path
    images = convert_from_path('path.pdf',poppler_path=r"E:/software/poppler-0.67.0/bin")
    for i in range(len(images)):
    images.save('image_name'+ str(i) +'.jpg', 'JPEG')


    But now I want to convert more than 100 pdf files into images. Is there any way? Thanks in advance.

    Continue reading...

Compartilhe esta Página