ocr-and-documents

Extract text and structured data from PDFs, scanned documents, and images.

228k|44.7k|Updated Jul 22, 2025
One-click install
npx skills add https://github.com/NousResearch/hermes-agent --skill ocr-and-documents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/NousResearch/hermes-agent/tree/main/skills/ocr-and-documents
Command: npx skills add https://github.com/NousResearch/hermes-agent --skill ocr-and-documents

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the extraction of text and structured data from various document formats, including PDFs, scanned documents, and images, eliminating manual data entry and information retrieval bottlenecks.

Core Features & Use Cases

  • Multi-format Support: Handles text-based PDFs, scanned PDFs (via OCR), DOCX, PPTX, and images.
  • Remote URL Extraction: Efficiently extracts content from PDFs hosted online using web_extract.
  • Advanced OCR & Layout Analysis: Utilizes marker-pdf for high-accuracy OCR, table extraction, equation parsing, and layout understanding on scanned documents.
  • Lightweight Option: Employs pymupdf for fast, low-dependency text extraction from text-based PDFs.
  • Use Case: Automatically extract all text and tables from a scanned research paper or a complex PDF report, making the information searchable and processable.

Quick Start

Use the ocr-and-documents skill to extract all text from the local file 'report.pdf'.

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 and images?

To extract text from scanned PDFs and images, this Skill uses marker-pdf for advanced OCR and layout analysis. It performs high-accuracy text extraction, table extraction, and equation parsing to convert scanned documents into searchable structured data.

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

For text-based PDFs, the best way to extract text is using the lightweight pymupdf library. It provides fast, low-dependency text extraction from digital documents without requiring heavy OCR processing.

Can I extract text from a PDF hosted at a remote URL?

Yes, you can extract text from a PDF hosted at a remote URL using the web_extract feature. This efficiently retrieves and extracts content from online documents, automating information retrieval from web-hosted sources.

Does this text extraction tool work with DOCX and PPTX files?

Yes, this text extraction tool works with DOCX and PPTX files. It handles these formats through dedicated python-docx and python-pptx libraries, extending document extraction capabilities beyond PDFs and images.

How does OCR handle complex layouts and tables in scanned documents?

OCR handles complex layouts and tables in scanned documents by utilizing marker-pdf for advanced layout understanding. This mechanism performs table extraction and equation parsing, successfully capturing structured data from complex formats.