ImageToPDFConverter/
├── Images/
│ ├── image1.png
│ ├── image2.jpeg
│ ├── image3.jpg
│ ├── step1.png
│ ├── step2.png
│ ├── step3.png
│ ├── step4.png
│ ├── step5.png
│ ├── step6.png
│ └── output.pdf
├── README.md
└── image_to_pdf.py
The main aim of this project is to provide a simple and user-friendly GUI interface that allows users to upload multiple images and convert them into a single PDF file.
It also shows where the file is saved and automatically opens the generated PDF.
Make sure you have the following installed:
- Python 3.x
- Required Python libraries:
pip install pillow
- (Optional) A virtual environment for cleaner setup.
The purpose of this project is to simplify the process of combining multiple image files (JPG, JPEG, PNG) into one PDF document using a graphical user interface (GUI) — no command line required.
This project uses Tkinter for the GUI, Pillow (PIL) for image handling, and webbrowser to open the created PDF automatically.
- Upload multiple image files easily.
- Convert all selected images into a single PDF.
- Choose custom file name and save location.
- Automatically open the generated PDF after saving.
- Modern and clean user interface.
tkinter→ for GUIPillow→ for image processingwebbrowser→ to open the created PDF fileos→ to handle file paths
This function opens a file dialog for selecting images (.jpg, .jpeg, .png) and stores them in a list.
- Converts all selected images to RGB format.
- Merges them into one PDF file.
- Saves the file to a user-selected location.
- Opens the PDF automatically using the system’s default viewer.
-
A label that guides the user.
-
Two buttons:
- Upload Images
- Convert to PDF
-
Clone the repository or copy the script
git clone <your_repo_url>
Or simply download the
.pyfile. -
Navigate to the directory
cd ImageToPDFConverter -
Create and activate a virtual environment (recommended)
For Linux/Mac :
python -m venv myenv source myenv/bin/activateFor Windows:
myenv\Scripts\activate
-
Install dependencies
pip install pillow
-
Run the program
python image_to_pdf.py
When you run the app:
- Click “ Upload Images” and select your image files.
- Click “ Convert to PDF”.
- Choose where to save your PDF.
- A success message appears and your PDF opens automatically!
If you upload the image:
image1.png
The app merges them into a PDF file like:
output.pdf
Then automatically opens it.
Example:






Shashwat
This project demonstrates how Python’s Tkinter and Pillow can be combined to create a simple yet effective GUI tool. With minimal dependencies, this app is lightweight, easy to use, and automates the task of combining images into PDFs with a single click.