Skip to content

subham23s/PDFforge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ PDFforge — Convert Anything to PDF

A fast, lightweight, and private document-to-PDF converter built with Flask and Python. No signup. No cloud uploads. Everything runs locally on your machine.


🚀 Features

  • 📄 Convert multiple file formats to PDF in one click
  • 🖼️ Image support — PNG, JPG, JPEG, GIF, BMP, WEBP, TIFF
  • 📝 Document support — TXT, DOCX, XLSX, CSV, HTML, Markdown
  • 📦 Batch conversion — upload multiple files at once
  • 🔒 100% local — your files never leave your machine
  • 🌐 Auto-opens in browser when you run it

📁 Project Structure

PDFforge/
├── app.py                  # Flask backend + conversion logic
├── templates/
│   └── index.html          # Frontend HTML
├── static/
│   ├── style.css           # Styling
│   └── main.js             # Frontend JavaScript
├── requirements.txt        # Dependencies
└── .gitignore

🛠️ Setup & Installation

1. Clone the repository

git clone https://github.com/subham23s/PDFforge.git
cd PDFforge

2. Create and activate virtual environment

python -m venv venv

# Windows
venv\Scripts\activate

# Linux / Mac
source venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

4. Run the app

python app.py

The browser will automatically open at http://127.0.0.1:5050


📦 Supported Formats

Format Type
.txt Plain Text
.md Markdown
.html / .htm Web Page
.docx Word Document
.xlsx Excel Spreadsheet
.csv CSV Data
.png / .jpg / .jpeg Images
.gif / .bmp / .webp / .tiff Images
.pdf PDF (passthrough)

🧰 Tech Stack

  • Backend — Python, Flask
  • PDF Generation — ReportLab
  • Document Parsing — python-docx, openpyxl
  • Image Processing — Pillow
  • Frontend — HTML, CSS, Vanilla JavaScript

👤 Author

Subham Mishra
B.Tech CSE (AI/ML) LinkedIn ·

About

⚡ A local document-to-PDF converter built with Flask. Supports DOCX, XLSX, CSV, images, Markdown, HTML and more. No signup, no cloud — runs entirely on your machine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors