ocr-and-documents

Extract text, tables, and images from PDFs and scanned documents using pymupdf or marker-pdf.

16|Updated Sep 22, 2026
One-click install
npx skills add https://github.com/igniteenow/robo --skill ocr-and-documents-igniteenow
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/igniteenow/robo/tree/main/skills/productivity/ocr-and-documents
Command: npx skills add https://github.com/igniteenow/robo --skill ocr-and-documents-igniteenow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymupdf, pymupdf4llm, marker-pdf, and includes scripts (resource) components.

What problem does it solve? Getting usable text out of PDFs, scanned documents, and research papers is often blocked by missing text layers, complex layouts, equations, or tables that simple copy-paste cannot handle. ## Core Features & Use Cases - Lightweight extraction with pymupdf: Pull plain text, Markdown, tables, embedded images, and metadata from text-based PDFs with a ~25MB dependency. - High-quality OCR with marker-pdf: Convert scanned PDFs, equations, forms, and complex layouts into Markdown across 90+ languages, with optional LLM-boosted accuracy. - Remote and Arxiv support: Try web_extract first for documents with URLs, including Arxiv abstracts and full papers, avoiding local installs entirely. - Use Case: You receive a scanned 40-page contract PDF. The skill detects it needs OCR, checks disk space, runs marker-pdf, and returns clean Markdown with preserved tables and reading order. ## Quick Start Extract the text from the attached file 'report.pdf' into Markdown, using OCR if the document is scanned.

Frequently Asked Questions about ocr-and-documents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a PDF in Python?▼

Use pymupdf to open the PDF and call page.get_text() on each page, or run the extract_pymupdf.py helper script for plain text, Markdown, tables, or metadata output. It installs in seconds and needs no models.

pymupdf vs marker-pdf for PDF extraction?▼

pymupdf is a ~25MB library that handles text-based PDFs instantly, including tables and embedded images. marker-pdf is a 3-5GB PyTorch pipeline that adds OCR for scanned documents, equations, forms, and reading-order detection.

How do I OCR a scanned PDF document?▼

Use marker-pdf, which performs OCR in over 90 languages and outputs Markdown. Run extract_marker.py on the scanned file, optionally with --use_llm for higher accuracy, after confirming about 5GB of free disk space.

Does pymupdf work on scanned PDFs without a text layer?▼

No, pymupdf cannot OCR images, so scanned PDFs return empty or minimal text. For those files you need marker-pdf, which runs OCR over page images and reconstructs the layout.

Why does marker-pdf installation fail or get skipped?▼

marker-pdf requires roughly 5GB of free disk for PyTorch plus about 2.5GB of models downloaded to the HuggingFace cache on first use. The helper script's --check flag verifies disk space before installing.

Can I extract text from a PDF hosted at a URL?▼

Yes, try web_extract on the URL first, which converts PDFs to Markdown via Firecrawl with no local dependencies. Local extraction with pymupdf or marker-pdf is only needed for local files, failures, or batch jobs.