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.
- 📥 Drag-and-drop PDF upload
- 🔄 Automatic conversion to
.docx - 📤 Download ready in seconds
- 📁 Temporary storage of uploaded and converted files
- 🧼 Clean and simple UI
git clone https://github.com/Amrish-Sharma/pdf2word.git
cd pdf2wordpython3 -m venv venv
source venv/bin/activatepip install -r requirements.txtpython app.pyVisit the app at: http://localhost:5000
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
- Python 3.7+
- Flask
- pdf2docx
- Dropzone.js
- HTML5, CSS3
You can easily run this app using Docker. Here’s how:
docker build -t pdf2word .docker run -d -p 5000:5000 --name pdf2word-app pdf2wordThis will run the app on http://localhost:5000.
This app can be deployed easily using:
- Gunicorn + Nginx
- Render
- Railway
- Docker (using the
Dockerfileabove)
This project is licensed under the MIT License.
Feel free to fork and contribute!
Amrish Sharma
GitHub: @Amrish-Sharma
