/pdf-reader:pdf-readerfrom pdf-reader
Extract text from any PDF — native text via poppler or scanned/image-based via tesseract OCR fallback. Use when the user wants to read, search, summarise, or extract content from a PDF file. This plugin is read-only. For PDF creation, merging, splitting, watermarking, or form filling, use office-pdf instead.
Ships in pdf-reader. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Extract text from any PDF using pdf-text. Handles both native text PDFs (via pdftotext) and
scanned/image-based PDFs (via tesseract OCR fallback). Auto-detects which method to use.
| Task | Plugin |
|---|---|
| Extract text, summarise, search within a PDF | pdf-reader (this plugin) |
| Create, merge, split, watermark, fill forms | office-pdf |
# Extract all text (auto-detects text vs image)
pdf-text document.pdf
# Extract specific pages
pdf-text --pages 1-5 document.pdf
# Force OCR even on text-based PDFs
pdf-text --ocr document.pdf
# Show metadata and text/image classification
pdf-text --info document.pdf
If the user provides a URL, download the PDF first:
curl -sL -o $CLAUDE_TEMP_DIR/document.pdf "URL"
Run pdf-text to extract content:
pdf-text $CLAUDE_TEMP_DIR/document.pdf
For large PDFs, extract in page ranges to avoid overwhelming context:
pdf-text --pages 1-10 large-document.pdf
If you only need metadata or want to check the classification:
pdf-text --info document.pdf
The tool samples the first few pages with pdftotext. If fewer than 50 non-whitespace characters
are found, it classifies the PDF as image-based and falls back to OCR via tesseract at 300 DPI.
| Flag | Purpose |
|---|---|
--pages N-M | Extract pages N through M (inclusive, 1-based) |
--pages N | Extract a single page |
--ocr | Force OCR regardless of detected text |
--info | Show metadata and text/image classification |
--version | Show version |
poppler — provides pdftotext, pdfinfo, pdftoppm (required)tesseract — OCR engine (required only for scanned/image-based PDFs)Install per platform (macOS: brew install poppler tesseract; Debian/Ubuntu:
apt install poppler-utils tesseract-ocr; Fedora/RHEL: dnf install poppler-utils tesseract).
See plugin README for Arch and Windows.
office-pdf to read text from a PDF — use this plugin instead--pages to extract in manageable chunks--info firstWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jodre11/claude-code-plugins --plugin pdf-reader