ocr-and-documents

Extract text from PDFs and scanned documents via OCR pipelines.

4|Updated May 18, 2026
One-click install
npx skills add https://github.com/ZardLi1115/zedclaw --skill ocr-and-documents-zardli1115
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/ZardLi1115/zedclaw/tree/main/skills/productivity/ocr-and-documents
Command: npx skills add https://github.com/ZardLi1115/zedclaw --skill ocr-and-documents-zardli1115

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Extracting accurate text from PDFs and scanned documents is slow and error-prone, especially when documents are images, have complex layouts, or require OCR.

Core Features & Use Cases

  • URL-first extraction: When a document URL is available, it can convert PDFs to Markdown using a web extraction workflow (e.g., via Firecrawl) to avoid local setup.
  • Lightweight local text extraction (pymupdf): Instantly extract text, tables, metadata, selected pages, and embedded images for text-based PDFs.
  • High-quality OCR extraction (marker-pdf): Perform OCR with better layout handling for scanned PDFs, equations/LaTeX, forms, tables, and image-to-text use cases, including optional LLM-boosted accuracy.
  • Research/document pipelines: Fetch and extract Arxiv content and support split/merge/search workflows across pages using pymupdf.

Quick Start

Use the ocr-and-documents skill to extract Markdown text from a local scanned PDF by running python scripts/extract_marker.py scanned.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?

To extract text from a scanned PDF, use an OCR pipeline like marker-pdf to perform image-to-text conversion. This approach handles complex layouts and equations, outputting readable Markdown or JSON text from scanned documents.

What is the best way to convert a PDF to Markdown?

Converting a PDF to Markdown depends on the source: use pymupdf for lightweight text extraction from text-based PDFs, or use marker-pdf for OCR and complex layouts in scanned documents. You can also use web extraction workflows for URL-based PDFs.

Can I extract tables and LaTeX equations from PDFs?

Yes, you can extract tables and LaTeX equations from PDFs using the marker-pdf OCR pipeline. It provides high-quality layout handling specifically designed for complex forms, tables, and equations within scanned and text-based documents.

Does this PDF extraction method support page-level slicing for research papers?

Yes, the PDF extraction method supports page-level slicing for research workflows like Arxiv paper ingestion. Using pymupdf, you can extract selected pages, split and merge documents, and search text across specific page ranges.

Do I need local setup to extract text from an online PDF URL?

No, you do not need local setup to extract text from an online PDF URL if you use a web-based extraction workflow. This URL-first approach converts PDFs to Markdown remotely, avoiding local dependencies like pymupdf or marker-pdf.