ocr-and-documents

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

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

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 to enable editable content and searchable archives.

Core Features & Use Cases

  • OCR-based extraction for scanned documents with marker-pdf.
  • Text-based extraction from PDFs using pymupdf for fast results.
  • Use cases include archiving research papers, digitizing scanned contracts, and converting document images into searchable text.

Quick Start

Run text extraction on a local or remote PDF by choosing pymupdf for text PDFs or marker-pdf for OCR-based 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 or image document?

To extract text from a scanned PDF, this Skill uses marker-pdf for OCR-based extraction. This process digitizes scanned contracts and document images, converting them into editable text and searchable archives.

What is the best way to extract text from a text-based PDF file?

For text-based PDF extraction, pymupdf provides fast results by directly reading embedded text. This approach quickly turns your local PDF documents into editable content without requiring heavy OCR processing.

Can I extract text from remote PDF URLs or do I need local files?

You can extract text from remote PDF URLs using the integrated web_extract functionality. This allows you to process documents directly from web links alongside local text-based PDFs and scanned files.

Does this tool handle other document formats like DOCX or PPTX?

This Skill focuses on PDF text extraction and OCR processing but integrates DOCX and PPTX handling through related skills. You can extend your document processing workflow to these formats using those complementary tools.

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

Use marker-pdf for OCR-based extraction when dealing with scanned documents or images, and pymupdf for text-based PDFs. Choosing the right method ensures fast results for digital PDFs and accurate extraction for scans.

What dependencies are required to run OCR and PDF text extraction?

Running PDF text extraction and OCR requires pymupdf, pymupdf4llm, and marker-pdf as core tooling. These dependencies enable both fast text-based extraction and comprehensive OCR for scanned documents.