--- 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.