Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 339 Bytes

File metadata and controls

13 lines (10 loc) · 339 Bytes

pdfrender

Renders a PDF document as images directly using poppler.

Example

from pdfrender import PDFDocument

with PDFDocument.open('/path/to/myfile.pdf') as doc:
    for i in range(len(doc)):
        image = doc.render_page(i, dpi=200)  # image is a PIL image
        image.show()