ocr-and-documents

Extract text from PDFs and scanned documents using OCR.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/LynxLabVN/office-agent --skill ocr-and-documents-lynxlabvn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-and-documents
Source: https://github.com/LynxLabVN/office-agent/tree/main/agent-core/skills/productivity/ocr-and-documents
Command: npx skills add https://github.com/LynxLabVN/office-agent --skill ocr-and-documents-lynxlabvn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymupdf, marker-pdf, python-docx, python-pptx, web_extract, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of extracting text from PDFs and scanned documents, enabling quick access to information and enhancing productivity.

Core Features & Use Cases

  • PDF and Scanned Document Extraction: Extract text from a wide range of document formats, including PDFs, scanned documents, images, and more.
  • High-Quality OCR: Offers accurate OCR for scanned documents, supporting over 90 languages.
  • Markdown and JSON Outputs: Provides both Markdown and JSON formats for easy integration with other tools.
  • Use Case: For instance, you can use this Skill to convert a scanned contract into editable text and then export it to Markdown for further editing.

Quick Start

Extract text from a scanned document 'contract.pdf' using the 'ocr-and-documents' skill.

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 Python?

To extract text from a scanned PDF in Python, use OCR libraries like marker-pdf and pymupdf to process the document, recognize text in over 90 languages, and output the results as Markdown or JSON files.

Does OCR work with both local PDF files and remote document URLs?

OCR works with both local PDF files and remote document URLs by integrating with the web_extract library, allowing you to fetch and process documents directly from web sources without manual downloading.

Can I convert a scanned contract into editable Markdown or JSON?

You can convert a scanned contract into editable Markdown or JSON by applying OCR technology to the document, extracting the recognized text and formatting it into structured output for further editing or integration.

What Python libraries are required for PDF text extraction and OCR?

PDF text extraction and OCR require Python and specific libraries including pymupdf for PDF handling, marker-pdf for OCR, python-docx and python-pptx for document formats, and web_extract for URL-based processing.

What is the best way to process scanned documents for text recognition in multiple languages?

The best way to process scanned documents for text recognition in multiple languages is using an OCR solution that supports over 90 languages, handling various image and document formats to produce accurate Markdown or JSON outputs.

Why does my PDF text extraction return garbled or missing characters from scanned images?

PDF text extraction returns garbled or missing characters from scanned images because standard PDF readers cannot process embedded image text, requiring an OCR tool like marker-pdf to recognize and extract the visual text accurately.