https://github.com/hiteshydv001/image-to-pdf
https://github.com/hiteshydv001/image-to-pdf
flask html python
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hiteshydv001/image-to-pdf
- Owner: Hiteshydv001
- Created: 2025-01-06T10:33:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-06T10:57:59.000Z (over 1 year ago)
- Last Synced: 2025-04-06T21:38:12.224Z (over 1 year ago)
- Topics: flask, html, python
- Language: HTML
- Homepage: https://image-2-pdf.vercel.app
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Image to PDF Converter
This is a simple web application built using Flask that allows users to upload
multiple image files (JPG, PNG, JPEG) and convert them into a PDF. The user can choose
the output PDF name, and the images will be inserted into the PDF, each centered on its
own page.
Features
- Upload multiple image files.
- Select a custom name for the output PDF file.
- The images are automatically resized to fit within the standard A4 size (8.5" x 11").
- Each image is centered on a separate page in the PDF.
Technologies Used
- Flask: Python-based web framework.
- HTML/CSS: For the frontend interface.
- ReportLab: For PDF generation.
- Pillow: For image processing.
Installation
### Prerequisites
Ensure you have the following installed:
- Python (>= 3.6)
- pip (Python package manager)
### Steps
1. Clone the repository to your local machine:
```bash
git clone https://github.com/Hiteshydv001/Image-to-pdf.git
```
2. Navigate into the project directory:
```bash
cd Image-to-pdf
```
3. Install the required Python libraries:
```bash
pip install -r requirements.txt
```
4. Run the Flask app:
```bash
python app.py
```
---
The app will start on `http://127.0.0.1:5000/`.
How to Use
1. Go to the home page of the app.
2. Click on the "Drag & Drop Your Images Here or Click to Upload" area to upload your image files (JPG, PNG, or JPEG).
3. Enter a name for the output PDF.
4. Click on the **Convert to PDF** button to generate and download the PDF file containing the uploaded images.
---
Contributing
Feel free to fork this repository and submit issues or pull requests. If you have any
suggestions for improvements or enhancements, please let me know!
---
Made with ❤️ by [Hitesh](https://github.com/Hiteshydv001).