Skip to content

Amrish-Sharma/pdf2word

Repository files navigation

📄 PDF2Word - Convert PDF to Word Online

PDF2Word is a lightweight web application built using Flask that allows users to upload a PDF file and download its converted Word document (.docx) format. It features a sleek drag-and-drop interface powered by Dropzone.js.


✨ Features

  • 📥 Drag-and-drop PDF upload
  • 🔄 Automatic conversion to .docx
  • 📤 Download ready in seconds
  • 📁 Temporary storage of uploaded and converted files
  • 🧼 Clean and simple UI

🚀 Getting Started

1. Clone the repository

git clone https://github.com/Amrish-Sharma/pdf2word.git
cd pdf2word

2. Set up a virtual environment (recommended)

python3 -m venv venv
source venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

▶️ Run the App

python app.py

Visit the app at: http://localhost:5000


📁 Project Structure

pdf2word/
├── app.py               # Main Flask application
├── templates/
│   └── index.html       # UI for upload
├── static/
│   └── js/css           # CSS/JS for Dropzone
├── uploads/             # Uploaded PDFs (.gitkeep included)
├── converted/           # Converted Word files (.gitkeep included)
├── requirements.txt     # Python package requirements
└── .gitignore           # Ignore uploaded/converted files but keep folders

🖼️ Demo UI

Main Screen

🧪 Tech Stack

  • Python 3.7+
  • Flask
  • pdf2docx
  • Dropzone.js
  • HTML5, CSS3

🐳 Docker Setup

You can easily run this app using Docker. Here’s how:

1. Build the Docker image

docker build -t pdf2word .

2. Run the Docker container

docker run -d -p 5000:5000 --name pdf2word-app pdf2word

This will run the app on http://localhost:5000.


📦 Deployment

This app can be deployed easily using:

  • Gunicorn + Nginx
  • Render
  • Railway
  • Docker (using the Dockerfile above)

🙏 Credits


📜 License

This project is licensed under the MIT License.
Feel free to fork and contribute!


👤 Author

Amrish Sharma
GitHub: @Amrish-Sharma

About

PDF2Word is a lightweight web application built using Flask that allows users to upload a PDF file and download its converted Word document (.docx) format. It features a sleek drag-and-drop interface powered by Dropzone.js.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors