Skip to main content
Run any Skill in Manus
with one click

ocr-and-documents

Stars3
Forks5
UpdatedJuly 16, 2026 at 07:21

Extract text from PDFs, scans, and images. Two tiers: (1) fast, dependency-free text-LAYER extraction with PyMuPDF (import fitz) — already a core dependency — for born-digital PDFs that already contain selectable text; and (2) high-accuracy OCR + structured layout (Markdown/JSON with headings, tables, math, reading order) via the external marker-pdf CLI (marker_single / marker) for scanned/image-only PDFs or when you need clean Markdown. LOAD whenever the user wants to pull text out of a PDF/scan/image, 'OCR this', convert a PDF to Markdown/text/JSON, extract tables or a specific page range from a document, or read a document that has no copy-pasteable text. Decision rule: try the PyMuPDF text layer FIRST (instant, free, no models); only fall back to marker-pdf OCR when the text layer is empty/garbled (image-only scan) or the user needs layout-faithful Markdown/tables. PyMuPDF needs nothing extra; marker-pdf is a heavy external tool (PyTorch + Surya OCR model weights, optional GPU) installed on demand via pip

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly