Skip to content

Files

Latest commit

d3c20c5 · Feb 22, 2024

History

History
35 lines (22 loc) · 885 Bytes

File metadata and controls

35 lines (22 loc) · 885 Bytes

PDF to Images Converter

This Python script converts each page of a PDF document into separate image files. It utilizes the PyMuPDF library (fitz) to handle PDF operations and the Python Imaging Library (PIL) for image processing.

Usage

Prerequisites

Make sure you have the required dependencies installed:

pip install PyMuPDF pillow

Running the Script

python pdf_to_images.py

Make sure to customize the pdf_path and output_folder variables in the script according to your PDF file location and desired output folder.

Example

if __name__ == "__main__":
    pdf_path = "path/to/your/pdf/document.pdf"
    output_folder = "path/to/your/output/folder"
    
    pdf_to_images(pdf_path, output_folder)

License

This project is licensed under the MIT License - see the LICENSE file for details.