ocr-and-documents

Extract text from PDFs, scanned documents, and DOCX files via pymupdf, marker-pdf, and python-docx.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Extract text from PDFs, scanned documents, images, and other file formats using OCR and document parsing tools.

Core Features & Use Cases

  • Remote URL extraction using web_extract to pull text from online documents before local processing.
  • Local extraction options: pymupdf for text-based PDFs and marker-pdf for OCR/scanned documents, with DOCX support via python-docx and PPTX via related skills.
  • Outputs include plain text, Markdown, and structured results (tables, images, JSON) to enable downstream workflows.

Quick Start

Provide a path to a PDF or URL and I will extract text using web_extract for URLs, pymupdf for text PDFs, or marker-pdf for OCR-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, the workflow applies marker-pdf to perform optical character recognition on scanned documents and images. It processes local files or remote URLs and outputs the extracted text as Markdown or structured JSON.

What is the best way to extract text from a PDF URL?

The best way to extract text from a PDF URL is by prioritizing the web_extract tool for remote links. This pulls online document content directly before falling back to local extraction methods like pymupdf for text-based PDFs.

Does pymupdf work for extracting text from text-based PDFs?

Yes, pymupdf works efficiently for extracting text from text-based PDFs. When a document has embedded text rather than scanned images, pymupdf parses the content directly and can output the results as plain text or Markdown.

Can I get Markdown output when extracting document text?

Yes, you can get Markdown output when extracting document text. The extraction workflow generates plain text, Markdown, and structured results like JSON, enabling seamless integration into downstream data and analytics pipelines.

What formats are supported for document text extraction besides PDF?

Besides PDF formats, the document text extraction workflow supports scanned images via OCR and DOCX files via python-docx. Remote URLs are also supported through web_extract before applying local fallback extractors.

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

You should use marker-pdf instead of pymupdf when dealing with scanned documents or image-heavy files that require OCR. pymupdf is reserved for text-based PDFs where text is already embedded and can be parsed directly without OCR.