ocr-and-documents

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users extract text from PDFs and scanned documents, enabling quick search, indexing, and data extraction.

Core Features & Use Cases

  • Remote URL extraction via web_extract first to convert online PDFs to Markdown.
  • Local text-based PDF extraction using pymupdf for fast, accurate results.
  • OCR-based extraction for scanned documents using marker-pdf with multi-language support.
  • DOCX support via python-docx; PPTX guidance is available in the powerpoint skill.

Quick Start

Provide a PDF or scanned document and I will extract text, apply OCR when needed, and return a searchable result.

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 PDF documents?

You can extract text from scanned PDFs by applying OCR via marker-pdf, which recognizes text on scanned pages and outputs searchable, indexable content with multi-language support.

What is the best way to convert an online PDF URL to markdown?

For online PDFs, the system first attempts remote URL extraction via web_extract to directly convert online PDFs into markdown format before falling back to local processing methods.

Does this text extraction approach handle both text-based PDFs and scanned documents?

Yes, it handles both formats by using pymupdf for fast, accurate text extraction on text-based PDFs, and automatically switching to marker-pdf for OCR when processing scanned documents.

Do I need to install pymupdf and marker-pdf to process local PDF files?

Yes, you need the pymupdf and marker-pdf Python libraries installed in your environment to process local PDF files, with python-docx required optionally for DOCX handling.

Can I extract text from DOCX files using this document processing setup?

Yes, you can extract text from DOCX files using the python-docx library, which is supported as an optional dependency for document processing alongside the core PDF extraction features.

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

Use pymupdf for text-based PDFs to achieve fast, accurate extraction results. Switch to marker-pdf when processing scanned documents that require OCR to recognize embedded text.