ocr-and-documents

Convert PDFs and scanned documents into searchable text using pymupdf and marker-pdf.

Updated May 5, 2026
One-click install
npx skills add https://github.com/Z43L/zeus-agent --skill ocr-and-documents-z43l
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/Z43L/zeus-agent/tree/main/skills/productivity/ocr-and-documents
Command: npx skills add https://github.com/Z43L/zeus-agent --skill ocr-and-documents-z43l

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

OCR and document parsing help you recover readable text from PDFs, scanned pages, and complex documents so you can search, summarize, and reuse their contents instead of manually copying data.

Core Features & Use Cases

  • Remote-first extraction for URL PDFs: Use web extraction for PDF-to-markdown conversion when a document URL is available (e.g., arXiv PDFs).
  • Lightweight text-based PDF extraction: Use pymupdf (fast, no models) for text-based PDFs and basic structure needs, including markdown and tables.
  • High-quality OCR for scans and complex layouts: Use marker-pdf for scanned documents, equations/LaTeX, forms, and better layout-aware reading order.
  • Optional structured outputs: Produce markdown or JSON-like output including extracted metadata and (optionally) extracted images.

Quick Start

Extract high-quality text from a scanned PDF file named document.pdf (including OCR) and return the result in markdown.

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 and tables from a scanned PDF document?

Use marker-pdf for scanned PDF extraction to perform layout-aware OCR, recovering text, equations, and reading order for output as structured markdown or JSON.

What is the best way to convert an arXiv PDF link to markdown?

The best way to convert an arXiv PDF URL to markdown is using web extraction for remote document ingestion, bypassing the need for local file storage.

Does pymupdf support OCR for scanned documents?

Pymupdf does not perform OCR for scanned documents; it provides fast text-based extraction for digital PDFs including basic structure and tables without using models.

Can I convert a local PDF to markdown without running OCR models?

Yes, you can convert a local text-based PDF to markdown using pymupdf for fast extraction without models, bypassing the heavier marker-pdf OCR pipeline.

How do I extract images and metadata alongside text from a PDF?

You can extract images and metadata alongside text by configuring the extractor to produce structured JSON-like output, optionally capturing extracted images during the parsing process.

Why does my PDF extraction lose the correct reading order?

PDF extraction loses reading order when using basic text extractors instead of layout-aware OCR; marker-pdf resolves this by detecting complex layouts and forms for accurate sequencing.