Skip to content

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.

License

vickypandey14/Convert-PDF-into-Image-By-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages