ocr-and-documents

Extract text from PDFs and scanned documents using pymupdf and marker-pdf.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/LamseyahElias/jarvis-cloud-v2 --skill ocr-and-documents-lamseyahelias
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/LamseyahElias/jarvis-cloud-v2/tree/main/hermes-agent/skills/productivity/ocr-and-documents
Command: npx skills add https://github.com/LamseyahElias/jarvis-cloud-v2 --skill ocr-and-documents-lamseyahelias

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Extract text from PDFs and scanned documents (including OCR for images) and convert them into searchable, editable text for analysis, archiving, and data workflows.

Core Features & Use Cases

  • Remote URL Extraction: Automatically use web_extract first for online documents to obtain text without downloading locally.
  • Dual Extraction Strategies: Use pymupdf for fast text extraction from native PDFs and marker-pdf for OCR-enabled extraction of scanned documents, tables, forms, and complex layouts.
  • Flexible Outputs: Produce Markdown, plain text, or structured formats (including JSON with metadata), with optional image and table extraction for research pipelines.

Quick Start

Extract text from a PDF or scanned document using the pymupdf extractor.

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 scanned PDFs and images using OCR?

Extract text from scanned PDFs and images using OCR by applying marker-pdf for OCR-enabled processing of complex layouts, tables, and forms. This handles scanned documents natively, converting them into searchable and editable text for downstream archiving workflows.

What is the best way to get text from a native PDF without OCR?

The best way to get text from a native PDF is using pymupdf for lightweight and fast text extraction. This bypasses heavier OCR processing, directly parsing the embedded text to output plain text or Markdown formats for immediate analysis.

Can I extract text directly from a remote PDF URL without downloading it?

Yes, you can extract text directly from a remote PDF URL by using the web_extract function first. This automatically fetches and processes online documents to obtain text without requiring a local download, falling back to local extractors if needed.

Does this PDF text extraction approach handle tables and complex layouts?

Yes, this PDF text extraction approach handles tables and complex layouts by utilizing marker-pdf. It performs OCR-enabled extraction specifically designed to parse structured elements like tables and forms, outputting structured formats including JSON with metadata.

What output formats can I generate when extracting text from PDFs and scans?

When extracting text from PDFs and scans, you can generate flexible outputs including Markdown, plain text, or structured formats like JSON with metadata. This optionally includes extracted images and tables to integrate directly into research pipelines.

When should I avoid using marker-pdf for document text extraction?

You should avoid using marker-pdf for document text extraction when processing native, digitally-generated PDFs that already contain embedded text. In those cases, relying on pymupdf provides a faster, lightweight extraction without the unnecessary overhead of OCR.