pdf-generation

pdf-generation is a skill for Claude Code, Codex from aipoch/open-science. It costs 98 tokens per session (2,545 once invoked), scanned A, original, Apache-2.0.

A Python-based toolkit for creating and editing PDF files. It can make reports, handouts, and posters, and can also modify or read existing PDFs.

In plain words
What is it for?
Use it to create PDFs with ReportLab, or to merge, split, rotate, crop, watermark, encrypt, and fill forms in PDFs. It can also extract positioned text and tables, and render pages as images.
Why use it?
It removes the need to handle PDF layout, pages, forms, text, and tables from scratch. It also provides ways to view rendered pages and work with fonts, including Unicode and CJK text.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create PDFs with ReportLab, or to merge, split, rotate, crop, watermark, encrypt, and fill forms in PDFs. It can also extract positioned text and tables, and render pages as images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aipoch/open-science/pdf-generation
About the project

Open Science is a local-first, model-agnostic workbench for reproducible scientific research. Scientists use its AI agents, Python and R execution, data connectors, and traceable outputs for tasks such as literature review, analysis, simulation, and visualization across macOS, Windows, and Linux.

aipoch/open-science · 5,596 stars · on GitHub · aipoch.com

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 aipoch/open-science --skill pdf-generation
Clone the repo
git clone --depth 1 https://github.com/aipoch/open-science

Made for: Claude Code, Codex.

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-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/aipoch/open-science/pdf-generation/github.svg)](https://agentmods.dev/skills/aipoch/open-science/pdf-generation)
Your own site
<a href="https://agentmods.dev/skills/aipoch/open-science/pdf-generation"><img src="https://agentmods.dev/badge/skills/aipoch/open-science/pdf-generation/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-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/aipoch/open-science/pdf-generation"><img src="https://agentmods.dev/badge/skills/aipoch/open-science/pdf-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,545 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.
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.00098 $0.02545
Opus 5.5 $0.00039 $0.01018
Sonnet 5.5 $0.00020 $0.00509
Haiku 4.5 $0.00010 $0.00254

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

Security

Grade A, and why

pdf-generation 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 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (kernel.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.

resources/skills/pdf-generation/SKILL.md · 143 lines

How it starts

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

PDF generation and processing

Create new PDFs with ReportLab. Process existing PDFs with pypdf (pages, metadata, forms, encryption), pdfplumber (text with layout, tables), and pypdfium2 (rendering to images). User requirements for content, page size, and design take precedence over the defaults below.

Choose the tool

Task Use
Read, quote, or summarize a paper or attached PDF read_document, list_pdf_elements/read_pdf_element, read_library_pdf; no code needed
Create a report or handout ReportLab Platypus (SimpleDocTemplate, Paragraph, Table, Image)
Precise one-page layouts (poster, certificate, label) ReportLab canvas
Merge, split, rotate, crop, watermark, encrypt pypdf
Extract tables or positioned text pdfplumber
Fill a form pdf_form_fields and fill_pdf_form, then follow references/forms.md
Look at pages render_pdf_pages + host.viewImage

Advanced recipes (cropping, bookmarks, links, table styling, pdfplumber settings, OCR, troubleshooting) are in references/processing.md.

Setup

Run all PDF code with notebook_execute, not the shell. Check packages with inspect_packages; install missing ones with manage_packages (language: "python", packages reportlab, pypdf, pdfplumber, pypdfium2, pillow). Never run pip in a cell. Poppler, qpdf, pdftk, and LibreOffice are not bundled; do not plan on pdftotext, pdftoppm, or qpdf commands.

Read the full file on GitHub · 143 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 13d ago First seen · 143 lines · 98 tokens per session scan A 4f8cd3bc2ff7

Subscribe to this mod's changes

pdf-generation is a skill published in the GitHub repository aipoch/open-science (5,596 stars, last pushed today), licensed Apache-2.0. It adds 98 tokens to every session and 2,545 once invoked, about $0.0004 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-11-17.

Related

pdf-generation compared with skills from other repositories

pdf-generation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdf-generationaipoch/open-scienceSkill5.6ktodayApache-2.0A98Claude Code, Codex
pdf-explorexuzhougeng/wisp-scienceSkill1.1k6d agoAGPL-3.0A137Claude Code, Codex
word-zotero-citationsxuzhougeng/wisp-scienceSkill1.1k6d agoAGPL-3.0A90Claude Code, Codex
paper-compilewanshuiyin/Auto-claude-code-research-in-sleepSkill20ktodayMITB53Claude Code
pdf-storybookCoWork-OS/CoWork-OSSkill557todayMITA34Claude Code, Codex
nano-pdfCoWork-OS/CoWork-OSSkill557todayMITA17Claude Code, Codex
pdfholon-run/holonSkill206todayApache-2.0A33Claude Code, Codex