ocr-and-documents

Extract text, markdown, tables, and images from PDFs and scanned documents.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/big4council-prog/b4c-agent --skill ocr-and-documents-big4council-prog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/big4council-prog/b4c-agent/tree/main/skills/productivity/ocr-and-documents
Command: npx skills add https://github.com/big4council-prog/b4c-agent --skill ocr-and-documents-big4council-prog

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill removes the friction of turning PDFs, scanned pages, and other document files into usable text, tables, and searchable content so you can analyze, summarize, or repurpose what’s inside.

Core Features & Use Cases

  • Web-first extraction for URL documents: Converts remote PDFs (including many arXiv PDFs) to markdown using web_extract before falling back to local tools.
  • Lightweight text extraction for normal PDFs: Uses pymupdf (plus optional pymupdf4llm) for fast extraction of text, markdown, tables, and embedded images.
  • High-quality OCR for scanned documents: Uses marker-pdf for OCR and layout-aware extraction when pages are images or require better structure (at the cost of much larger model dependencies).

Use case: You have a scanned research article and need clean markdown plus key tables; run OCR extraction, then feed the output to downstream summarization or Q&A workflows.

Quick Start

Use the ocr-and-documents skill to extract markdown text from the provided file or URL, preferring web_extract when a URL is available.

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 and tables from a scanned PDF document?

To extract text and tables from a scanned PDF, you need OCR capabilities. This Skill uses marker-pdf for layout-aware extraction, converting scanned pages into clean markdown and structured tables for downstream analysis.

What is the best way to convert an arXiv PDF to markdown?

The best way to convert an arXiv PDF to markdown is using a web-first extraction approach. This Skill prioritizes remote URL conversion before falling back to local extraction tools, efficiently extracting readable text from online documents.

Does pymupdf support extracting images and tables from local PDF files?

Yes, pymupdf supports extracting images and tables from local PDF files. It provides a lightweight method for fast text and markdown extraction from normal PDFs, including embedded images and table structures, without requiring heavy OCR dependencies.

When do I need OCR instead of standard PDF text extraction?

You need OCR instead of standard PDF text extraction when your document pages are images or require better structural layout understanding. High-quality OCR via marker-pdf processes scanned documents, whereas lightweight extraction handles standard digital PDFs.

Can I extract markdown from a PDF using a URL?

Yes, you can extract markdown from a PDF using a URL. The Skill performs web-first extraction on URL-based documents, converting remote files directly to markdown before attempting any local file processing or OCR fallbacks.