ocr-and-documents

Extract text from PDFs and scanned documents using OCR and parsing.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Extracting text from complex PDFs and documents has historically been a time-consuming task. This skill solves this by automatically applying Optical Character Recognition (OCR) and document parsing, enabling quick text extraction from PDFs, scans, and other document formats.

Core Features & Use Cases

  • OCR for Scanned PDFs: Converts images in PDFs into readable text, including scanned documents.
  • PDF and Document Parsing: Extracts tables, equations, and images from PDFs, as well as converting to markdown and extracting metadata.
  • Flexible Extraction Options: Offers options between lightweight and high-quality OCR and layout analysis.
  • Use Case: For research and documentation-heavy professionals who need to extract information from a multitude of PDF sources rapidly.

Quick Start

To extract text from a PDF using pymupdf, you would execute:

python scripts/extract_pymupdf.py document.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 a scanned PDF using OCR?

To extract text from a scanned PDF, OCR applies character recognition to document images. This skill converts images within PDFs into readable text, automating extraction from scanned documents using Python scripts.

Can I parse complex PDF elements like tables and equations into markdown?

Yes, PDF parsing can extract tables, equations, and images into markdown. The skill processes complex document structures and metadata, transforming them into structured markdown for research and knowledge management workflows.

Does this PDF processing tool support both lightweight and high-quality OCR?

Yes, this PDF processing tool supports both lightweight and high-quality OCR options. You can choose between faster extraction or high-accuracy layout analysis depending on your document parsing requirements.

What is the best way to automate text extraction from multiple PDF sources?

The best way to automate text extraction from multiple PDF sources is using Python scripts with libraries like pymupdf. This skill automates administrative workflows and scientific research by rapidly parsing batches of documents.

Do I need Python to run document parsing and OCR on my files?

Yes, you need Python to run document parsing and OCR on your files. The skill relies on Python dependencies like pymupdf, pymupdf4llm, and marker-pdf to execute its text extraction scripts.

When should I use pymupdf4llm versus marker-pdf for document parsing?

Use pymupdf4llm for lightweight text extraction and marker-pdf for high-quality OCR and layout analysis. This skill leverages both dependencies to handle diverse document formats and varying extraction fidelity needs.