AGENT SKILL

pdf-splitter-ocr

暂无简介

使用场景文档处理
License 许可
AGPL-3.0
最近更新
2026-11-11
Stars
★ 80
Forks
17

01 前言 Front Matter

name
pdf-splitter-ocr
track
ai-productivity
summary
Split PDFs and perform OCR for searchability
version
0.1.0

02 资源文件 4

03 SKILL.md 正文

Description

Split PDF documents and perform optical character recognition (OCR) for text extraction and searchability. Supports batch processing and text indexing.

Inputs

{
  "pdf_path": "Path to PDF file",
  "action": "split|ocr|extract",
  "pages": "1-5|all"
}

Outputs

{
  "ok": true,
  "data": {
    "text": "Extracted text",
    "pages": 5
  }
}

Usage

Demo Mode

python scripts/main.py --demo

Extract Text

echo '{"pdf_path":"document.pdf","action":"extract"}' | python3 scripts/main.py

Examples

Example 1: OCR PDF

$ echo '{"pdf_path":"document.pdf","action":"ocr","pages":"1-3"}' | python3 scripts/main.py
{
  "ok": true,
  "data": {
    "text": "Extracted text content...",
    "pages": 3
  }
}

Error Handling

When an error occurs, the skill returns:

{
  "ok": false,
  "error": "Error description",
  "details": {
    "pdf_path": "File not found"
  }
}

04 同仓库更多 Skills