/documents:pdf-extractfrom documents
Extracts text from text-layer PDFs using pymupdf. Supports single files, specific pages, batch folders, and metadata retrieval. Not for scanned/image-only PDFs.
Ships in documents. 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.
pymupdf through uv run --with pymupdf - it needs only uv, and the package is cached after the first run.
uv run --with pymupdf python3 -c "
import pymupdf
doc = pymupdf.open('/path/to/file.pdf')
for page in doc:
text = page.get_text().strip()
if text:
print(text)
print()
"
Adapt that loop to the request:
'\n\n'.doc[2] to doc[4] are pages 3-5.glob.glob('/path/to/folder/*.pdf') in one uv run and write a .txt beside each PDF.doc.metadata holds title, author and creator; len(doc) is the page count.get_text("blocks") returns positioned blocks, get_text("html") returns HTML with formatting preserved.Import the module as pymupdf. The old fitz alias still works but is deprecated and will be removed.
Done when every requested page returned text. Blank or near-empty output means the PDF is a scan - hand it to the ocr skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub henkisdabro/wookstar-claude-plugins --plugin documents4 skills in this plugin
/document-parseStructured parsing of complex documents into JSON and LLM-ready markdown with two local engines - LiteParse `lit` for PDFs and images (layout blocks, markdown, built-in OCR) and AILANG Parse `docparse` for office, email and e-book formats plus AI parsing of charts and images. Use when the user needs headings, tables, reading order or layout blocks out of a PDF, wants to read or parse a DOCX, PPTX, XLSX, ODT, EPUB, EML or MBOX file, needs track changes, comments or speaker notes, wants a chart, diagram, photo or handwritten page interpreted, or wants a file converted between formats ("turn this markdown into a DOCX"). Do NOT use for a quick plain-text read of a text-layer PDF - use pdf-extract; for making a scanned PDF searchable or bulk OCR - use ocr; for filling forms, merging, splitting or table export to CSV/Excel - use pdf-processing-pro; for authoring Word, Excel or PowerPoint files from scratch - use the document-skills plugin./ocrAdds a searchable text layer to scanned or image-only PDFs with OCRmyPDF (Tesseract) - local, free, deterministic, no AI tokens. Use when the user says "OCR this" or "make this searchable", when a PDF has no text layer or pdf-extract returned blank output, when text is wanted out of a scan, for digitising a large scanned book or a batch of scans, or when OCR must stay offline and cost-free. Do NOT use for PDFs that already have a text layer - use pdf-extract; for tables, headings or structured output from complex layouts, handwriting or charts - use document-parse; for forms, merging or splitting - use pdf-processing-pro.Other plugins' skills for the same job