pdf-ocr-skill

Extract text from scanned PDFs and images using OCR engines.

14|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/yejinlei/pdf-ocr-skill --skill pdf-ocr-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-ocr-skill
Source: https://github.com/yejinlei/pdf-ocr-skill/tree/main
Command: npx skills add https://github.com/yejinlei/pdf-ocr-skill --skill pdf-ocr-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, python-dotenv, rapidocr_onnxruntime, pymupdf, pillow, rapid-doc, paddleocr, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the manual effort of reading scanned PDFs and images by converting them into searchable, editable text. It is built for documents that cannot be copied directly, such as photocopies, scans, screenshots, and image-based reports.

Core Features & Use Cases

  • Multi-engine OCR: Choose between RapidOCR, RapidDoc, PaddleOCR, or SiliconFlow API depending on speed, structure, and accuracy needs.
  • PDF and image support: Process scanned PDFs as well as common image formats such as JPG, PNG, BMP, GIF, TIFF, and WEBP.
  • Structured extraction: Preserve reading order, recover layout where possible, and return Markdown when using the enhanced engine.
  • Practical workflows: Use it for contracts, books, reports, forms, screenshots, and batch conversion of large document sets.

Quick Start

Ask the Skill to extract text from your scanned PDF or image using the OCR engine you prefer, and it will return the recognized text with page-by-page results.

Frequently Asked Questions about pdf-ocr-skill

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

FAQPage Schema
How do I extract text from scanned PDF documents and images?

To extract text from scanned PDFs and image files, this Skill applies page-by-page OCR using engines like RapidOCR or PaddleOCR to convert image-based content into searchable, editable text.

Does OCR work with Chinese and English text recognition in scanned reports?

Yes, OCR supports both Chinese and English text recognition. It processes scanned reports, books, and forms while preserving reading order and recovering layout structure where possible.

What is the best way to convert scanned PDFs to Markdown format?

The best way to convert scanned PDFs to Markdown is by using the enhanced RapidDoc engine, which provides structured extraction and returns layout-aware output for your documents.

Can I use SiliconFlow API for OCR instead of local engines like RapidOCR?

Yes, you can use the SiliconFlow API for OCR instead of local engines. The Skill supports engine fallback and selection between RapidOCR, PaddleOCR, RapidDoc, and the SiliconFlow API.

Does the Skill process batch documents and common image formats like PNG and TIFF?

Yes, the Skill processes batch document sets and supports common image formats including JPG, PNG, BMP, GIF, TIFF, and WEBP, alongside standard scanned PDF files.

What are the limitations of local OCR engines for complex layout documents?

Local OCR engines like RapidOCR may have limitations with complex layout documents, but the Skill offers engine fallback to RapidDoc or SiliconFlow API to improve structure recovery and accuracy.