Reads, creates, fills, and transforms PDF files. Covers text/table extraction, OCR, form filling, merging, splitting, rotating, stamping, and encrypting.
Ships in document-skills. 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.
Read when SKILL.md points to them; scripts run unread.
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.
<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.
| 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 |
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
page.cropbox.left and .bottom./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.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.uv run --with 'pypdf[crypto]'. Without it, pypdf raises DependencyError on open or on encrypt.| Script | Does |
|---|---|
check_fillable_fields.py <pdf> | Says which form path in forms.md applies |
extract_form_field_info.py <pdf> <out.json> | Lists fillable fields, their pages, boxes and accepted values |
fill_fillable_fields.py <pdf> <values.json> <out.pdf> | Fills fields after checking every id, page and value |
convert_pdf_to_images.py <pdf> <dir> [--pages] [--fields] | Renders pages one at a time to PNG, optionally outlining each fillable field |
check_bounding_boxes.py <fields.json> [pdf] | Finds overlapping or too-short boxes before a flat form is filled |
create_validation_image.py <page> <fields.json> <png> <out.png> | Draws those boxes on a page image for checking by eye |
fill_pdf_form_with_annotations.py <pdf> <fields.json> <out.pdf> | Fills a flat form with text that renders identically everywhere |
flatten_form.py <pdf> <out.pdf> | Draws filled values into the page so they can't be edited |
pdf_coords.py <pdf> <page> <WxH> --to-pdf/--to-image <box> | Converts boxes between page-image pixels and PDF points |
forms.md (opens in a new tab)ocr.md (opens in a new tab)reference.md (opens in a new tab)scripts/check_bounding_boxes.py (opens in a new tab)scripts/check_fillable_fields.py (opens in a new tab)scripts/convert_pdf_to_images.py (opens in a new tab)scripts/create_validation_image.py (opens in a new tab)scripts/extract_form_field_info.py (opens in a new tab)scripts/fill_fillable_fields.py (opens in a new tab)scripts/fill_pdf_form_with_annotations.py (opens in a new tab)scripts/flatten_form.py (opens in a new tab)scripts/pdf_coords.py (opens in a new tab)tables.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/docxCreate, edit, review, and read Word documents (.docx), including tracked changes (redlines), comments, footnotes, tables, images, headers and page setup. Use when a task produces or modifies a .docx, reviews or redlines one, or needs its text, comments or tracked changes read./pptxCreate, edit, and analyze PowerPoint decks (.pptx). Build new decks from HTML slides, fill an existing template, duplicate or reorder slides, edit slide XML, and read or write speaker notes. Use when a task produces or modifies a .pptx file, or needs text, layout, or notes read from one./xlsxCreate, edit, analyze, and recalculate Excel workbooks (.xlsx, .xlsm) with live formulas, formatting, and charts. Use when a task produces or modifies a spreadsheet file, turns CSV/TSV data into one, or needs values, formulas, or formatting read from one./document-skills:pdffrom document-skills
npx claudepluginhub appautomaton/document-skills --plugin document-skillsOther plugins' skills for the same job