File size: 2,041 Bytes
2147e0b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
---
title: PDFtoDOCX
emoji: 👀
colorFrom: pink
colorTo: pink
sdk: gradio
sdk_version: 5.33.0
app_file: app.py
pinned: false
license: mit
---
# PDF→Word Converter
A simple Gradio‐based web app to convert one or more PDF files into DOCX,
format all tables as **Table Grid**, extract any URLs and append them at the end,
and—if you upload multiple PDFs—bundle all outputs into a ZIP.
---
## 🚀 Features
- **Batch or single** PDF → DOCX conversion
- Automatically style all tables as **Table Grid**
- Extracts both annotation and inline URLs into a “Daftar Link” section
- If multiple PDFs are uploaded, outputs are packaged into a ZIP
---
## 📦 Installation
1. **Clone this repo**
```bash
git clone https://github.com/salmanalfarisi11/pdf-to-docx.git
cd pdf2word-gradio
```
2. Create and activate a virtual environment:
```bash
python -m venv .venv
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # Windows
```
3. Install dependencies:
```bash
pip install -r requirements.txt
```
## 🚀 Running Locally
Launch the app on your machine:
```bash
python app.py
```
By default, it will start on http://127.0.0.1:7860/. Open that URL in your browser to access the interface.
## 🎯 Usage
1. Open the localhost URL shown in your terminal.
2. Drag & drop one or more PDF files into the Upload PDF(s) panel.
3. Click Convert.
4. When ready, click ⬇️ Download Output to download either a single DOCX or a ZIP of all DOCXs.
## 🛠️ Dependencies
- Python 3.8+
- Gradio ≥ 5.33.0
- PyMuPDF
- pdf2docx
- python-docx
## 📄 License
This project is licensed under the [MIT License](LICENSE).
---
## 🖋️ Author & Credits
Developed by **[Salman Alfarisi](https://github.com/salmanalfarisi11)** © 2025
- GitHub: [salmanalfarisi11](https://github.com/salmanalfarisi11)
- LinkedIn: [salmanalfarisi11](https://linkedin.com/in/salmanalfarisi11)
- Instagram: [faris.salman111](https://instagram.com/faris.salman111) |