Guide · Agent skill
How to use the PDF toolkit (pdf-official) agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The pdf-official skill is a toolkit that gives an AI agent a structured playbook and Python helper scripts for PDF work: reading, extracting, combining, splitting, rotating, composing new documents and filling forms. This guide explains what the skill does, how to install it from the ZIP, how to ask for PDF work so the skill triggers, and what it needs and risks before you run its scripts. You do not need prior experience with agent skills to follow it.
Quick start
- 1Download the ZIP. Get the pdf-official ZIP from this page.
- 2Unzip into a skills folder. Unzip into ~/.claude/skills/ for all projects or into a project's .claude/skills/ folder.
- 3Or upload in the Claude apps. In the Claude apps go to Settings, Capabilities, Skills and upload the skill.
- 4Install the Python packages. Run the pip command for pypdf, pdfplumber, pypdfium2, reportlab and Pillow.
- 5Ask with a natural request. Name the PDF or describe the output you want, for example a report or a filled form.
- 6Check the probe output. Let the agent run survey.py so you can see page count, lock status, form fields and scan status.
- 7Validate the result. Ask the agent to validate the output before you rely on it.
What the skill makes the agent do
The skill covers any task where a PDF is produced, opened, transformed, filled or read. The source lists extracting text or tables from an existing PDF, combining, carving, rotating, cropping or watermarking pages, composing a fresh PDF such as a report, invoice or certificate, filling AcroForm fields or overlaying text onto a non-fillable scanned form, encrypting or unlocking a PDF, running OCR over a scanned document, and rendering pages to PNG or JPEG for visual analysis.
The agent follows a fixed order for mixed tasks: probe the file, plan, extract or compose, then validate. The first step runs scripts/survey.py, which reports page count, whether the file is locked, the number of form fields, and whether page 1 looks like a scan.
- Probe: page count, encryption, form fields, scan detection
- Extract: text, tables, metadata, images
- Transform: combine, split, rotate, watermark
- Compose: build reports and invoices from data
- Fill: AcroForm widgets or overlay text on non-fillable forms
How do you install the pdf-official skill?
Download the ZIP from this page and unzip it into one of two locations: ~/.claude/skills/ for all your projects, or a project's .claude/skills/ folder for one project. Alternatively, in the Claude apps, open Settings, then Capabilities, then Skills, and upload the skill there.
The skill's own setup section recommends a Python-only install first, which covers most tasks. Add qpdf, Tesseract or Poppler only when you need encryption, OCR or Poppler's command-line tools.
python3 -m pip install --upgrade pypdf pdfplumber pypdfium2 reportlab PillowHow do you trigger the skill with natural requests?
You do not need to name the skill. The skill triggers on mentions of 'PDF', a filename ending in .pdf, requests such as 'turn this into a PDF report', or references to AcroForm or form fields. Say what you want done to the file, and name the file if you have one.
If the file is locked, the skill routes you to unlock it first. If it is a scan with no selectable text, it routes to OCR, because text extraction returns nothing for scanned pages.
- Turn this invoice data into a PDF with a totals table.
- Extract the tables from report.pdf into CSV.
- Merge these three PDFs and remove page 2 from the second one.
- Fill the name and date fields in form.pdf.
- Rotate the scanned pages in scan.pdf and check the page count.
- Render page 3 of contract.pdf to PNG so I can look at it.
What does the skill need?
The core needs Python 3 and the pip packages pypdf, pdfplumber, pypdfium2, reportlab and Pillow. qpdf is optional and is used for encryption, repair and flattening. Tesseract with pytesseract and pdf2image is optional for OCR. Poppler is optional and is GPL-2.0 at the command-line level.
The source's install commands use Homebrew (macOS) and apt (Debian or Ubuntu). Scripts use argparse, and exit codes are 0 for OK, 1 for runtime failure, 2 for bad arguments and 3 for validation failure in the form-filling scripts. The skill reports that it makes no network calls.
- Required: Python 3, pypdf, pdfplumber, pypdfium2, reportlab, Pillow
- Optional: qpdf, Tesseract with pytesseract and pdf2image, Poppler
Safety notes: scripts, network and signatures
The skill runs scripts, so read them before you trust a run on important files. The source states it does not use the network. Some optional tools and OCR may run locally on the document contents, and the setup commands install third-party software with pip, Homebrew or apt.
The scripts refuse signature fields and do not create certified signatures. Do not use this skill as the basis for legal or signature-critical work. For sensitive documents, avoid sending them to unknown hosts and check what each optional tool does before installing it.
- Scripts run locally; the skill declares no network use.
- Setup installs third-party packages; review the commands first.
- Signature fields are refused; no certified signatures are made.
- XFA forms are not AcroForms and must be flattened in Acrobat first.
Tips for reliable results
Start by asking the agent to run the survey on the file, so you see the flags before any changes. If pypdf returns nothing for a document, check whether it is a scan rather than assuming a bug. Coordinate bugs usually come from PDF's bottom-left origin versus the image's top-left origin.
For new documents with CJK text, the source says a missing font can silently fall back to Helvetica, which has no CJK glyphs, so check the output. For encryption, the source notes pypdf defaults to RC4 and recommends AES-256 for real protection.
- Run the probe first, every time.
- Check the page count and metadata in the probe output.
- Pick AES-256 for encryption rather than the pypdf default.
- Use the bundled runtime if the MIMO_PYTHON environment variable is set; the skill then skips the pip installs.
What people use it for
- Extracting line-item tables from supplier invoices into a spreadsheet-ready file.
- Filling non-fillable scanned forms by overlaying text at chosen coordinates.
- Merging, splitting and rotating pages across a batch of reports.
- Generating a fresh certificate or report PDF from a data set.
- Rendering pages to PNG for the agent to inspect visually.
Frequently asked questions
Is the pdf-official skill free to use?
The item metadata on this page lists the licence as MIT, but the SKILL.md front matter says Apache-2.0 and points to a LICENSE file. Check the LICENSE file in the ZIP before you rely on either. The skill's dependencies are open-source libraries, and the source notes Poppler is GPL-2.0.
What do I need to run the pdf-official skill?
You need Python 3 and the pip packages pypdf, pdfplumber, pypdfium2, reportlab and Pillow. qpdf, Tesseract and Poppler are optional and only needed for encryption, OCR or Poppler's command-line tools.
How do I install the pdf-official skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder. You can also upload it in the Claude apps under Settings, Capabilities, Skills.
Can the skill fill in PDF forms?
Yes. For AcroForm fields it uses pypdf to update the field values. For non-fillable forms it overlays text at chosen coordinates. XFA forms are not AcroForms and must be flattened in Adobe Acrobat first.
Does the skill work on scanned PDFs?
Text extraction does not work on scans because there is no text layer. The skill routes scanned files to OCR, which needs Tesseract with pytesseract and pdf2image installed.
Can the skill sign PDFs or make legal documents?
No. The scripts refuse signature fields and do not create certified signatures, so do not rely on it for signature-critical or legal work.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use pdf-official if you handle invoices, forms, reports or scanned documents often, or if you build document workflows and want tested helper scripts. Skip it for simple one-off reading, where the agent's built-in file reading is enough, and for legal or signature-critical work.
Download the skill