This project is a Flask web application that enables users to upload PDF files and convert them into images (PNG format). If the uploaded PDF contains multiple pages, the images will be zipped together for easy download.
- Upload PDF Files: Users can upload PDF files through a simple web interface.
- Convert PDF to Images: Each page of the PDF is converted into a PNG image.
- Zip Multiple Images: For PDFs with multiple pages, images are compressed into a zip file for convenient downloading.
- Download Images: Users can download images individually or as a zip file.
- Flask: A micro web framework for Python.
- PyMuPDF: A library for manipulating PDF files and images.
- HTML/CSS: For frontend design.
- Python: For backend logic.
-
Clone the repository:
git clone https://github.com/kausaraahmed/repo-name.git cd repo-name
-
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
- On Windows:
.venv\Scripts\activate
- On macOS/Linux:
source .venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Open your web browser and navigate to
http://127.0.0.1:5000/
. -
Upload a PDF file and click the submit button to convert it to images.
This application is ready for deployment on platforms like Vercel. Ensure all necessary environment variables are set and configurations are adjusted according to the hosting service's requirements.
Contributions are welcome! If you have suggestions or improvements, feel free to fork the repository and submit a pull request.
Here’s how you can contribute to this project:
-
Fork the Repository (you can also give a star ^_^)
-
Clone the Forked Repository:
git clone https://github.com/yourusername/repo-name.git cd repo-name
-
Do your magic
-
Submit PR
This project is licensed under the MIT License. See the LICENSE file for details.