Spaces:
Runtime error
Runtime error
Advanced PDF editor with OCR: upload, OCR (19 languages), find/replace, add text (multi-language), page tools, merge/split, watermark, compress, encrypt, forms
efa9a24 A newer version of the Gradio SDK is available: 6.26.0
metadata
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
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.