Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDFz

Link- https://riyaachauhan.github.io/PDFz/

PDFz is a simple web-based file converter built with Flask. Users can upload a file, choose a target format, and download the converted output directly from the browser.

What it does

  • Convert images to PDF
  • Convert PDF files to images such as PNG, JPG, and WEBP
  • Convert images to different image formats
  • Convert text files to PDF
  • Support compression options for image output
  • Provide a download link for the generated file

Supported formats

  • Input: JPG, JPEG, PNG, WEBP, BMP, GIF, PDF, TXT, HTML, MD
  • Output: PDF, PNG, JPG, WEBP, TXT

Project structure

PDFz/
├── backend/
│   ├── app.py
│   ├── config.py
│   ├── requirements.txt
│   ├── services/
│   │   ├── converter_service.py
│   │   ├── img_service.py
│   │   └── pdf_service.py
│   ├── static/uploads/
│   └── templates/index.html
├── frontend/
│   ├── index.html
│   ├── script.js
│   └── style.css
├── dockerfile
└── readme.md

Prerequisites

Make sure you have Python 3.10+ installed.

Setup locally

  1. Clone the repository

    git clone https://github.com/RiyaaChauhan/PDFz.git
    cd PDFz
  2. Install dependencies

    pip install -r backend/requirements.txt
  3. Run the app

    cd backend
    python app.py
  4. Open the app in your browser at http://localhost:5000

Usage

  1. Open the home page.
  2. Upload a file.
  3. Select the target format.
  4. Choose a compression level if needed.
  5. Click Convert.
  6. Download the generated file from the success message.

Testing

Run the conversion tests with:

python -m pytest backend/tests -q

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages