Skill by NousResearch
Creates, reads, merges, fills, OCRs and edits PDF files through Python helper scripts. Useful for generating reports and invoices, building fillable forms, and extracting text or tables. Relies on pypdf, reportlab and pdfplumber.
Install pdf
Built from the published package, never by AI.
git clone --depth 1 https://github.com/NousResearch/hermes-agent /tmp/hermes-agent && mkdir -p ~/.claude/skills && cp -r /tmp/hermes-agent/skills/productivity/pdf ~/.claude/skills/pdfRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/NousResearch/hermes-agent /tmp/hermes-agent && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/hermes-agent/skills/productivity/pdf ~/.gemini/antigravity-cli/skills/pdfAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The pdf skill gives an AI assistant a set of Python helper scripts for working with PDF files. It can create PDFs from JSON specs, build and fill AcroForm forms after linting the layout, and extract text, tables and metadata. It can also merge, split, rotate, watermark or stamp pages, export page images, manage attachments, and encrypt or decrypt files with passwords. The helpers use pypdf, reportlab and pdfplumber.
Scanned, image-only PDFs are routed to a separate OCR reference that uses pymupdf or marker-pdf, and text edits inside existing PDFs use the nano-pdf CLI. The skill is aimed at users who want an assistant to handle document work such as reports, invoices, forms and batch PDF tasks. It is published under the MIT license and lists Linux, macOS and Windows as platforms.
Written from the project's SKILL.md and checked against it.
What it can do
- Create PDFsBuilds a PDF from a JSON spec with headings, paragraphs, tables, images and page breaks using pdf_create.py.
- Build fillable formsCreates AcroForm forms from a JSON spec with pdf_make_form.py, after linting the layout with pdf_form_layout.py.
- Extract text and tablesReturns per-page text, and tables as JSON or CSV files, using pdf_read.py --text and --tables.
- Read metadata and fieldsReports metadata, page sizes, encryption and scanned flags, and form field names, types and values.
- Merge and splitCombines PDFs with pdf_merge.py and extracts, splits or rotates page ranges with pdf_split.py.
- Fill formsFills AcroForm fields from a JSON file with pdf_fill_form.py and can flatten the result.
- Watermark and stampOverlays a stamp PDF with pdf_watermark.py, or places text or images at coordinates with pdf_stamp.py.
- Export page imagesRenders pages to PNG files with pdf_page_image.py for review or OCR hand-off.
- Encrypt and decryptEncrypts PDFs with AES-256 and user or owner passwords, and decrypts them with pdf_secure.py.
- OCR scanned PDFsRoutes image-only PDFs to a separate OCR reference that uses pymupdf or marker-pdf.
What you need
- Python 3.10 or later
- pypdf, reportlab and pdfplumber Python packages
- pypdfium2 or pdftoppm on PATH for page rendering
- Linux, macOS or Windows
Try asking
- Merge report-a.pdf and report-b.pdf into one file with bookmarks.
- Fill the form in tax.pdf with these name and date values.
- Extract all tables from invoice.pdf and save them as CSV files.
Good to know
- Not for scanned or image-only PDFs. Use the OCR reference instead.
- Not for pixel-perfect HTML-to-PDF rendering. Use a headless browser.
- Flattening can drop or misrender some widgets, and some viewers ignore the NeedAppearances flag.
- Non-Latin form values can show blank if the field's font lacks the glyphs.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/productivity/pdf/SKILL.md, skills/productivity/pdf/scripts/_raster.py, skills/productivity/pdf/scripts/extract_marker.py, skills/productivity/pdf/scripts/extract_pymupdf.py, skills/productivity/pdf/scripts/pdf_create.py, skills/productivity/pdf/scripts/pdf_fill_form.py, skills/productivity/pdf/scripts/pdf_form_layout.py, skills/productivity/pdf/scripts/pdf_make_form.py, skills/productivity/pdf/scripts/pdf_merge.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
LICENSE1 KB -
SKILL.md15 KB -
references/forms.md4 KB -
references/nano-pdf-editing.md1 KB -
references/ocr-extraction.md9 KB
Show all 21 files
-
scripts/_raster.py3 KB -
scripts/extract_marker.py3 KB -
scripts/extract_pymupdf.py4 KB -
scripts/pdf_create.py5 KB -
scripts/pdf_fill_form.py5 KB -
scripts/pdf_form_layout.py7 KB -
scripts/pdf_make_form.py6 KB -
scripts/pdf_merge.py2 KB -
scripts/pdf_meta.py4 KB -
scripts/pdf_page_image.py4 KB -
scripts/pdf_read.py6 KB -
scripts/pdf_secure.py3 KB -
scripts/pdf_split.py3 KB -
scripts/pdf_stamp.py6 KB -
scripts/pdf_watermark.py2 KB -
tests/test_pdf_skill.py18 KB
Alternatives to pdf
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
pdf: common questions
Can it read scanned PDFs?
Not directly. The source routes scanned or image-only PDFs to a separate OCR reference that uses pymupdf or marker-pdf.
Can it fill PDF forms?
Yes. It lists AcroForm field names and types, fills them from a JSON file of values, and can flatten the filled form.
Can it edit text inside an existing PDF?
The source says natural-language text edits use the nano-pdf CLI, described in references/nano-pdf-editing.md.
How do I install pdf?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pdf free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pdf safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pdf?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
