ocr-and-documents

Extract text, tables, and structure from PDFs and scanned documents.

12|2|Updated Feb 2, 2020
One-click install
npx skills add https://github.com/servitola/dotfiles --skill ocr-and-documents-servitola
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/servitola/dotfiles/tree/main/claude-code/skills/ocr-and-documents
Command: npx skills add https://github.com/servitola/dotfiles --skill ocr-and-documents-servitola

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates extracting text, tables, and document structure from PDFs and scanned documents, reducing manual data capture and enabling faster processing.

Core Features & Use Cases

  • Text extraction from text-based PDFs and OCR-based extraction for scanned documents.
  • Table detection and extraction with Markdown output for easy integration into dashboards and reports.
  • Optional image extraction and guidance for handling DOCX/PPTX where relevant.

Quick Start

Run the tool on a document.pdf to convert content into Markdown with text, tables, and layout information.

Frequently Asked Questions about ocr-and-documents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to convert PDF content into Markdown format?

PyMuPDF extracts text from text-based PDFs, while marker-pdf handles OCR-enabled extraction from scanned documents. The skill applies these dependencies to capture text, tables, and layout structure, converting the output into structured Markdown.

Can I use marker-pdf for OCR extraction on scanned documents?

Yes, the tool provides optional python-docx support for handling DOCX files alongside its primary PDF extraction capabilities. It applies OCR-enabled extraction and table capture to automate document processing workflows across multiple formats.

How does table detection work when extracting PDFs to Markdown?

Yes, marker-pdf is required specifically for OCR-enabled extraction from scanned documents. The tool uses it to detect and capture document structure, extracting text and tables into Markdown output for automated document processing workflows.

Do I need pymupdf to extract text from a text-based PDF?

Table detection works by capturing table structures during extraction and converting them directly into Markdown format. This enables easy integration of extracted tabular PDF data into dashboards and reports without manual data capture.

Do I need pymupdf to extract text from a text-based PDF?

Yes, pymupdf is required to extract text and structure from text-based PDFs. For scanned documents requiring OCR, the skill additionally uses marker-pdf to ensure accurate text and table capture during markdown conversion.