https://github.com/kausar2nd/pdfimage
This project is a Flask web application that enables users to upload PDF files and convert them into images (PNG format).
https://github.com/kausar2nd/pdfimage
good-first-issue upforgrabs
Last synced: 7 months ago
JSON representation
This project is a Flask web application that enables users to upload PDF files and convert them into images (PNG format).
- Host: GitHub
- URL: https://github.com/kausar2nd/pdfimage
- Owner: kausar2nd
- License: mit
- Created: 2024-10-07T08:54:50.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-07T18:23:53.000Z (12 months ago)
- Last Synced: 2025-02-24T17:49:55.552Z (7 months ago)
- Topics: good-first-issue, upforgrabs
- Language: CSS
- Homepage: https://pdfimage.vercel.app
- Size: 8.36 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PDF to Image Converter
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.
## Table of Contents
- [Features](#features)
- [Technologies Used](#technologies-used)
- [Installation](#installation)
- [Usage](#usage)
- [Deployment](#deployment)
- [Contributing](#contributing)
- [License](#license)## Features
- **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.## Technologies Used
- **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.## Installation
1. **Clone the repository:**
```bash
git clone https://github.com/kausaraahmed/repo-name.gitcd repo-name
```2. **Create a virtual environment:**
```bash
python -m venv .venv
```3. **Activate the virtual environment:**
- On Windows:
```bash
.venv\Scripts\activate
```
- On macOS/Linux:
```bash
source .venv/bin/activate
```4. **Install the required packages:**
```bash
pip install -r requirements.txt
```## Usage
1. Run the application:
```bash
python app.py
```2. Open your web browser and navigate to `http://127.0.0.1:5000/`.
3. Upload a PDF file and click the submit button to convert it to images.
## Deployment
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.
## Contributing
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:
1. **Fork the Repository** (you can also give a star ^_^)
2. **Clone the Forked Repository**:
```bash
git clone https://github.com/yourusername/repo-name.git
cd repo-name
3. **Do your magic**
4. **Submit PR**## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
```