ocr-and-documents

Extract text and structured data from PDFs and scanned documents.

11|Updated May 17, 2026
One-click install
npx skills add https://github.com/StarryCod/cogitum --skill ocr-and-documents-starrycod
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/StarryCod/cogitum/tree/main/cogitum/data/skills/productivity/ocr-and-documents
Command: npx skills add https://github.com/StarryCod/cogitum --skill ocr-and-documents-starrycod

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill enables you to extract text and structured data from PDFs and scanned documents, turning static files into searchable, reusable content.

Core Features & Use Cases

  • Lightweight extraction: Use pymupdf for fast, plain-text output from PDFs.
  • OCR-enabled extraction: Use marker-pdf for scanned documents and complex layouts with high accuracy.
  • Versatile outputs: Generate Markdown or JSON, with optional image exports for downstream workflows.

Quick Start

Run the appropriate extractor on a local PDF to obtain either Markdown text or structured data in JSON.

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?

To extract text from scanned PDF documents, this Skill uses marker-pdf for high-quality OCR, processing images, forms, and multilingual layouts to produce accurate Markdown or structured JSON outputs.

How do I convert a PDF to Markdown?

You can convert a PDF to Markdown using pymupdf4llm for fast plain text, or marker-pdf for complex layouts, generating Markdown output while optionally exporting embedded images.

Does marker-pdf support extracting tables from PDFs?

Yes, marker-pdf supports extracting tables from PDFs. It handles complex layouts with high accuracy, capturing tables and embedded images to produce structured Markdown or JSON outputs.

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

The best way to extract text from a PDF with images is using the marker-pdf OCR-enabled extractor, which accurately processes scanned documents and embedded images into Markdown or JSON.

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

Use pymupdf for fast, lightweight, plain-text extraction from standard PDFs. Use marker-pdf when you need OCR for scanned documents, multilingual content, tables, or complex layouts.

Can I extract structured data from PDFs into JSON?

Yes, you can extract structured data from PDFs into JSON. The Skill uses pymupdf or marker-pdf to process documents and output structured JSON, accommodating tables and forms.