generate-pdf

generate-pdf is a skill for Claude Code, Codex from TrendTweekers/mintpdf. It costs 28 tokens per session (459 once invoked), scanned A, original, MIT.

A skill for turning HTML, Markdown, or a public web page into a styled PDF file. PDF is a fixed-layout document format commonly used for sharing finished documents.

In plain words
What is it for?
Creating invoices, receipts, reports, summaries, and PDFs from public web pages, with options such as page numbers, paper size, margins, headers, and footers.
Why use it?
It turns text or web content into a printable, shareable document without requiring manual layout work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Creating invoices, receipts, reports, summaries, and PDFs from public web pages, with options such as page numbers, paper size, margins, headers, and footers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trendtweekers/mintpdf/generate-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 TrendTweekers/mintpdf --skill generate-pdf
Clone the repo
git clone --depth 1 https://github.com/TrendTweekers/mintpdf

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 generate-pdf

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/trendtweekers/mintpdf/generate-pdf"><img src="https://agentmods.dev/badge/skills/trendtweekers/mintpdf/generate-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 459 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00028 $0.00459
Opus 5.5 $0.00011 $0.00184
Sonnet 5.5 $0.00006 $0.00092
Haiku 4.5 $0.00003 $0.00046

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

Security

Grade A, and why

generate-pdf scanned grade A with 1 finding 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 2mo ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://mintpdf.dev/v1/pdf \
public/.well-known/agent-skills/generate-pdf/SKILL.md · 51 lines

What it actually says

Generate a PDF with MintPDF

Use this when a user needs a finished document rather than text: an invoice, a receipt, a report, a summary they will send to someone else.

Fastest path (no key, no signup)

curl -X POST https://mintpdf.dev/v1/pdf \
  -H "Content-Type: application/json" \
  -d '{"markdown":"# Invoice #42\n\n| Item | Price |\n|---|---|\n| Widget | $9.00 |","pageNumbers":true}' \
  --output invoice.pdf

Add "output":"url" to get JSON with a download link (valid one hour) instead of raw bytes.

As an MCP server

Remote: https://mintpdf.dev/mcp (streamable HTTP) Local: npx -y mintpdf-mcp

Tools: generate_pdf (html or markdown in) and pdf_from_url (public URL in).

Options

format (A4, Letter, Legal, A3, A5), landscape, margin (e.g. "18mm"), headerText, footerText, pageNumbers.

Choosing the input

  • markdown — the default choice. A clean stylesheet is applied automatically, so tables, code blocks and headings come out looking right with no design work.
  • html — when you need full control. Your own CSS is used as-is.
  • url — to capture a public page as it renders.

Limits

3 renders/day anonymously, 100/month with a free key (POST /v1/keys with an email, no card), then 3,000/month on Solo ($19), 12,000 on Team ($49) and 50,000 on Scale ($129). Send the key as Authorization: Bearer pm_….

Privacy

Generated files are deleted after one hour. No document storage. Requests to private or internal network addresses are refused.

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. 2mo ago Changed f59ec58ea17e
  2. 3mo ago First seen · 51 lines · 28 tokens per session scan A 690ab7fc9c3d

Subscribe to this mod's changes

generate-pdf is a skill published in the GitHub repository TrendTweekers/mintpdf (1 stars, last pushed 10d ago), licensed MIT. It adds 28 tokens to every session and 459 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

generate-pdf compared with skills from other repositories

generate-pdf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-pdfTrendTweekers/mintpdfSkill110d agoMITA28Claude Code, Codex
pdfrenderpdfrender-dev/pdfrenderSkill017d agoMITA55Claude Code
n8n-binary-and-dataczlonkowski/n8n-mcpSkill23kyesterdayMITA135Claude Code, Codex
pdfmudler/LocalAISkill51ktodayMITA35Claude Code, Codex
any-to-pdfcosmicstack-labs/mercury-agentSkill4.1ktodayMITA66Claude Code, Codex
markdown-to-pdfstaskh/trading_skillsSkill4294d agoMITA45Claude Code
csv-to-executive-reportskrun-dev/skrunSkill21317d agoMITA81Claude Code, Codex