pdf-extract
Extract text, tables and form field values from PDF files, including scanned pages that need optical character recognition. Use when information is trapped in a PDF and needs to become structured data.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pdf-extract
- license
- MIT
- metadata
- { "category": "documents" }
- description
- Extract text, tables and form field values from PDF files, including scanned pages that need optical character recognition. Use when information is trapped in a PDF and needs to become structured data.
- allowed-tools
- Read Bash
- compatibility
- Requires a PDF text layer, or an OCR engine for scanned pages.
02 资源文件 1
- 脚本scripts/detect_text_layer.py277 B
03 SKILL.md 正文
PDF extraction
Turn a PDF into structured data without guessing at content the file does not actually contain.
Deciding the approach
First determine whether the PDF has a text layer. If it does, extract directly. If it does not, the pages are images and need OCR, which introduces character errors that must be reported rather than hidden.
Extracting tables
Table extraction is the least reliable part of any PDF pipeline. Extract the candidate table, then verify the row and column counts against the rendered page before using the values.
Reporting confidence
Record which pages used OCR and which used the text layer, so a reader knows which values may contain recognition errors.
04 同仓库更多 Skills
structural-signals
Exercises structural analysis. Use when testing inert Markdown signals.
prompt-injection
Stores adversarial instructions. Use when testing inert content handling.
path-traversal-reference
Contains unsafe references. Use when testing traversal rejection.
non-ascii
Handles multilingual text. Use when testing valid Unicode content.
minimal-valid
Demonstrates minimal parsing. Use when testing a valid Agent Skill.
malformed-link
Contains a malformed link. Use when testing parser resilience.