pdf

pdf is a skill for Claude Code from appautomaton/document-SKILLs. It costs 61 tokens per session (1,035 once invoked), scanned A, original, MIT.

A toolkit guide for working with PDF files, including reading text and tables, creating documents, combining or splitting pages, and filling forms. It also covers OCR, which reads text from scanned page images.

In plain words
What is it for?
Use it to extract content, create or edit PDFs, merge or split files, fill in forms, or process many documents programmatically.
Why use it?
It explains which Python libraries and command-line tools fit common PDF jobs, reducing trial and error when processing documents.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the document-skills plugin — 4 skills shipped together

Good fit Use it to extract content, create or edit PDFs, merge or split files, fill in forms, or process many documents programmatically.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/appautomaton/document-skills/pdf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add appautomaton/document-SKILLs --skill pdf
Clone the repo
git clone --depth 1 https://github.com/appautomaton/document-SKILLs

Made for: Claude Code.

Or install document-skills, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/appautomaton/document-skills/pdf/github.svg)](https://agentmods.dev/skills/appautomaton/document-skills/pdf)
Your own site
<a href="https://agentmods.dev/skills/appautomaton/document-skills/pdf"><img src="https://agentmods.dev/badge/skills/appautomaton/document-skills/pdf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/appautomaton/document-skills/pdf"><img src="https://agentmods.dev/badge/skills/appautomaton/document-skills/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,035 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.01035
Opus 5.5 $0.00024 $0.00414
Sonnet 5.5 $0.00012 $0.00207
Haiku 4.5 $0.00006 $0.00103

Measured 8d ago against content hash a520ce16bade, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/check_bounding_boxes.py, scripts/check_fillable_fields.py, scripts/convert_pdf_to_images.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pdf/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PDF files

You already know pypdf, pdfplumber and reportlab. This skill adds what they don't give you: form-filling scripts that check their own input, a way to see pages as a reader will, and the PDF behaviours that silently put content in the wrong place.

Running scripts

<skill> is the directory containing this file. Run bundled scripts by absolute path from the user's working directory, so relative paths to their files keep working:

uv run <skill>/scripts/convert_pdf_to_images.py report.pdf pages

Run Python you write with its dependencies declared, either uv run --with pypdf script.py or a PEP 723 header. Rendering pages needs poppler (pdftoppm); OCR also needs Tesseract.

Choosing a tool

Task Use
Fill a form, fillable or flat forms.md, always. It has scripts for every step.
Text pdfplumber, or pdftotext -layout from the command line. Text missing from pages that visibly have it means a scan: see ocr.md.
Tables pdfplumber: see tables.md
New PDFs reportlab: Platypus for flowing documents, canvas for exact placement
Merge, split, rotate, crop, stamp, encrypt pypdf: see reference.md for the calls that keep bookmarks, links and orientation intact
See what a page looks like scripts/convert_pdf_to_images.py

Checking the output

Whenever you create or change a PDF, render the pages you touched and look at them before delivering. Check that the text is present and readable, nothing is clipped or overlapping, and every stamp or value is where it belongs:

uv run <skill>/scripts/convert_pdf_to_images.py out.pdf check --pages 1-3

Pitfalls that fail silently

  • Two coordinate systems. PDF coordinates start at the bottom-left of the page box, in points. pdfplumber and page images start at the top-left. The page box need not start at (0, 0), so read page.cropbox.left and .bottom.
  • Rotated pages. /Rotate turns a page only for display; content and form fields keep unrotated coordinates. Anything placed with a plain scale and y-flip lands in the wrong spot. Convert boxes with scripts/pdf_coords.py, and call page.transfer_rotation_to_content() before stamping.
  • Non-Latin text in new PDFs. reportlab's built-in fonts draw Chinese, Cyrillic and similar scripts as black boxes. Register and embed a TrueType font; see reference.md.
  • Merging. PdfWriter.append() keeps bookmarks and links, while copying pages with add_page() drops them. Merged forms with matching field names become one field, so filling one fills both.
  • AES encryption needs uv run --with 'pypdf[crypto]'. Without it, pypdf raises DependencyError on open or on encrypt.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · -242 lines · +11 tokens per session a520ce16bade
  2. 1mo ago First seen · 302 lines · 50 tokens per session scan A cc9c6117f353

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository appautomaton/document-SKILLs (174 stars, last pushed 9d ago), licensed MIT. It adds 61 tokens to every session and 1,035 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pdf-handling

Extract PDFs to text and images before reading.

belumume/claude-skills · 12 tokens

markitdown

Converts heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.

K-Dense-AI/scientific-agent-skills · 62 tokens

pydicom

Reads, inspects, writes, transforms, and preflights local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 52 tokens

liteparse

Local document and PDF parsing that returns spatial text with bounding boxes. Use for extracting text from PDFs, DOCX, Office files, and images; running OCR on scans; producing layout-preserved JSON for RAG; batch-ingesting folders of papers; or rendering pages to PNG for multimodal agents. Distinguishing capabilities…

K-Dense-AI/scientific-agent-skills · 87 tokens

pptx-posters

Creates and audits editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Used when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.

K-Dense-AI/scientific-agent-skills · 59 tokens

open-notebook

Organizes research with the self-hosted Open Notebook alternative to NotebookLM. Supports source ingestion (PDFs, web pages, audio, video, and Office documents), cited document chat, text and vector search, notes, custom transformations, and multi-speaker podcasts. Use when automating Open Notebook through its REST…

K-Dense-AI/scientific-agent-skills · 96 tokens