跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
文档处理

pdf_reader

Extract text content from PDF files. Use when: user asks to read, extract, or analyze content from a PDF document. Supports multi-page extraction, page ranges, and metadata. NOT for: scanned/image PDFs (OCR), PDF editing, or creating PDFs.

ericwang915 · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add ericwang915/PythonClaw --skill pdf_reader

技能说明


name: pdf_reader description: "Extract text content from PDF files. Use when: user asks to read, extract, or analyze content from a PDF document. Supports multi-page extraction, page ranges, and metadata. NOT for: scanned/image PDFs (OCR), PDF editing, or creating PDFs." dependencies: PyPDF2 metadata: emoji: "📄"

PDF Reader Skill

Extract text and metadata from PDF files using PyPDF2.

When to Use

✅ USE this skill when:

  • "Read this PDF"
  • "Extract pages 2-4 from report.pdf"
  • "What's in this PDF?"
  • "Get PDF metadata"
  • User wants to read or summarize content from a PDF

When NOT to Use

❌ DON'T use this skill when:

  • Scanned/image PDFs (no embedded text) → use OCR tools
  • PDF editing or creating → use PDF manipulation libraries
  • Extracting images or embedded media → use specialized PDF tools

Usage/Commands

python {skill_path}/read_pdf.py PATH_TO_PDF [options]

Options:

  • --pages 1-5 — extract only specific pages (1-indexed, supports ranges)
  • --metadata — include PDF metadata (author, title, creation date)
  • --format json — output as JSON
  • --summary — show page count and character count overview only

Examples

  • "Read this PDF" → python {skill_path}/read_pdf.py document.pdf
  • "Extract pages 2-4 from report.pdf" → python {skill_path}/read_pdf.py report.pdf --pages 2-4
  • "What's in this PDF?" → python {skill_path}/read_pdf.py file.pdf --summary
  • "Get PDF metadata" → python {skill_path}/read_pdf.py file.pdf --metadata

Notes

  • Install dependency: pip install PyPDF2
  • Works best with PDFs that have embedded text (not scanned images)