pdf-reader
Reads and extracts text from PDF files with the local PyMuPDF workflow, including page-level inspection. Use when the user gives a .pdf path and asks to read…
от shkodnik1917★ 37 звёзд на GitHub
Установить pdf-reader в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
PDF Reader
Extract text from PDF files using open-source tools. PyMuPDF (fitz) is the primary engine with pypdf as fallback.
When to use
- User provides a
.pdffile path and asks to read or extract its contents - User asks to summarize a PDF
- User asks what a PDF document contains
- Academic papers, reports, or any PDF documents
When NOT to use
- URLs pointing to web pages (use
defuddleskill instead) - Image files (use image analysis tools)
- Already-extracted text files
Workflow
1. Extract text
Run the extraction script:
python3 ~/.claude/skills/pdf-reader/scripts/extract_pdf.py <pdf_path>
Options:
-p, --pages— extract specific pages, e.g.1-5or1,3,7-m, --method— forcefitzorpypdf(default: auto)--json— output structured JSON with metadata--metadata-only— print only title, author, page count
2. For large PDFs
Extract in chunks to avoid token overflow:
- First run with
--metadata-onlyto check page count - Then extract page ranges with
-p 1-10,-p 11-20, etc.
3. For scanned PDFs (image-based)
If extracted text is empty or garbled, the PDF is likely scanned. Inform the user that OCR is needed. Consider suggesting marker or ocrmypdf as next steps.
Quality notes
- PyMuPDF preserves font size and bold formatting as markdown headers and bold text
- pypdf is the fallback and produces plain text only
- Both handle multi-column layouts as single-column output (reading order)
- Tables are extracted as plain text, not as structured tables
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/extract_pdf.py
FAQ
Что делает скилл pdf-reader?
Reads and extracts text from PDF files with the local PyMuPDF workflow, including page-level inspection. Use when the user gives a .pdf path and asks to read it, summarize it, extract its text, or find out what a specific page contains.
Как установить скилл pdf-reader?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pdf-reader запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…