ocr-and-documents

Extract text from PDFs and scanned documents into Markdown or JSON.

2|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/john-data-chen/hermes-agent-backup --skill ocr-and-documents-john-data-chen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/john-data-chen/hermes-agent-backup/tree/main/skills/productivity/ocr-and-documents
Command: npx skills add https://github.com/john-data-chen/hermes-agent-backup --skill ocr-and-documents-john-data-chen

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Text extraction from PDFs and scanned documents is tedious and error-prone, hindering searchability and reuse. This skill offers fast, flexible extraction using pymupdf for text-based PDFs and marker-pdf for OCR-enabled documents, with Markdown or JSON outputs.

Core Features & Use Cases

  • Fast text extraction from standard PDFs with pymupdf.
  • OCR-enabled extraction for scanned documents using marker-pdf.
  • Output formats include Markdown and JSON, with optional image/table extraction.

Quick Start

Extract text from a PDF using pymupdf by default, and switch to marker-pdf for OCR on scanned documents.

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 scanned PDF using OCR?

To extract text from a scanned PDF using OCR, this skill applies marker-pdf to recognize text in image-based documents and outputs the results as Markdown or JSON files.

What is the best way to convert a text-based PDF to Markdown?

The best way to convert text-based PDFs to Markdown is using pymupdf for fast text extraction, bypassing OCR entirely for native text documents to ensure quick and accurate results.

Can I extract images and tables alongside text from PDFs?

Yes, you can extract images and tables alongside text from PDFs. The skill supports optional image and table extraction during the document processing workflow to preserve visual content.

Does this PDF text extraction approach handle academic papers and invoices?

Yes, this PDF text extraction approach handles academic papers, invoices, reports, and forms. It processes both native text PDFs and image-based scans to enable searchable archives.

When should I use marker-pdf instead of pymupdf for document processing?

You should use marker-pdf instead of pymupdf when processing image-based scanned documents that require OCR, while pymupdf is optimized for fast extraction from standard text-based PDFs.