PDFEDITER / README.md
hackerbhai's picture
Advanced PDF editor with OCR: upload, OCR (19 languages), find/replace, add text (multi-language), page tools, merge/split, watermark, compress, encrypt, forms
efa9a24
|
Raw
History Blame Contribute Delete
1.74 kB
---
title: PDF EDITER
emoji: πŸ“
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 6.24.0
python_version: '3.12'
app_file: app.py
pinned: false
license: mit
---
# πŸ“ PDF EDITER β€” Advanced PDF Editor with OCR
Upload a PDF β†’ OCR scanned pages β†’ edit text β†’ manage pages β†’ merge/split β†’ watermark β†’ compress β†’ protect β†’ download. Built with **Gradio + PyMuPDF + Tesseract OCR**.
## ✨ Features
| Tab | What you can do |
| --- | --- |
| πŸ“₯ Upload & Preview | Upload one or more PDFs (auto-merged), browse pages, zoom, click preview to set coordinates |
| πŸ” OCR | Tesseract OCR in **19 languages** (English, Hindi, Tamil, Telugu, Kannada, Malayalam, Bengali, Marathi, Gujarati, Punjabi, Spanish, French, German, Italian, Portuguese, Russian, Arabic, Chinese, Japanese), makes scanned PDFs **searchable**, extracts `.txt` |
| ✏️ Edit Text | Find & **Replace** across the document (with match highlighting), **add text** anywhere in 9 fonts incl. Devanagari / Tamil / Bengali / Arabic / Gurmukhi, click-to-position |
| πŸ–ΌοΈ Page Tools | Delete, rotate, duplicate, move up/down, **reorder**, **split**, **extract** pages with thumbnails |
| 🧩 Merge & Advanced | **Merge** PDFs, **watermark** (angle/opacity), **compress**, **encrypt (AES-256)** / unlock, **fill PDF forms** |
| ‴️ Top bar | **Undo / Redo** (25 steps), reset session, download the current PDF |
## πŸš€ Run locally
```bash
pip install -r requirements.txt
sudo apt-get install -y tesseract-ocr tesseract-ocr-eng tesseract-ocr-hin # + more language packs
python app.py
```
## ⏱️ Performance note
OCR runs on the Space's CPU β€” for best results start with 1–2 pages at 200 DPI to check quality, then process the rest.