dp-export-pdf

dp-export-pdf is a skill for Claude Code from kabde/dp-createur. It costs 78 tokens per session (4,500 once invoked), scanned B, original, MIT.

An HTML-to-PDF converter for producing formatted documents such as ebooks, guides, checklists, lead magnets, and landing pages. It can add pagination, a cover, headers, footers, page numbers, and a clickable table of contents.

In plain words
What is it for?
It converts one HTML file or a folder of HTML files into PDFs, with optional cover pages, clickable contents, headers, footers, and page numbers.
Why use it?
It removes the manual work of turning a web page into a printable or downloadable document while keeping links usable.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It converts one HTML file or a folder of HTML files into PDFs, with optional cover pages, clickable contents, headers, footers, and page numbers.

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

Made for: Claude Code.

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 dp-export-pdf

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kabde/dp-createur/dp-export-pdf"><img src="https://agentmods.dev/badge/skills/kabde/dp-createur/dp-export-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,500 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00078 $0.04500
Opus 5 $0.00039 $0.02250
Sonnet 5 $0.00016 $0.00900
Haiku 4.5 $0.00008 $0.00450

Measured 10d ago against content hash 96758e79637a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

dp-export-pdf scanned grade B with 2 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 10d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Ubuntu : sudo apt-get install wkhtmltopdf

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(['file', 'exports/[slug].pdf'], capture_output=True, text=True)
skills/dp-export-pdf/SKILL.md · 546 lines

How it starts

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

Export PDF — Convertisseur HTML → PDF Professionnel

Convertit les fichiers HTML générés par les skills DP Créateur en PDF professionnels prêts à vendre ou distribuer. Le PDF est le format standard pour les ebooks, guides et lead magnets vendus en ligne.

Quick Reference

Commande Description
/dp-export-pdf browser [fichier.html] Conversion via navigateur (aucune installation)
/dp-export-pdf [fichier.html] Conversion simple avec options par défaut
/dp-export-pdf [fichier.html] --cover Avec page de couverture
/dp-export-pdf [fichier.html] --toc Avec table des matières cliquable
/dp-export-pdf [fichier.html] --full Cover + TOC + headers/footers + numéros de page
/dp-export-pdf batch [dossier] Convertir tous les HTML d'un dossier
/dp-export-pdf check Vérifier que les outils de conversion sont installés

Output Format

LIVRABLE :
├── exports/[slug].pdf
│   ├── PDF professionnel haute qualité
│   ├── Pagination automatique
│   ├── Liens internes et externes cliquables
│   ├── Table des matières cliquable (optionnel)
│   ├── Page de couverture (optionnel)
│   ├── Headers/footers avec numéros de page (optionnel)
│   └── Optimisé pour impression et écran
└── Prêt à uploader sur Gumroad, LemonSqueezy, etc.

Process

1. Vérifier les outils     → Puppeteer, Playwright, ou wkhtmltopdf installé ?
2. Context intake           → Fichier source, options de format
3. Préparer le HTML         → Injecter les styles print, cover, TOC
4. Convertir                → HTML → PDF via le moteur disponible
5. Vérifier                 → Pages, taille, liens, qualité
6. Deliver                  → Fichier PDF + résumé

Step 1 — Vérifier les Outils de Conversion

Tester dans cet ordre de préférence :

# Option 1 (recommandée) : Puppeteer / Playwright (via Node.js)
which node && npm list -g puppeteer 2>/dev/null || npm list puppeteer 2>/dev/null

# Option 2 : Playwright
which playwright 2>/dev/null

# Option 3 : wkhtmltopdf
which wkhtmltopdf 2>/dev/null

# Option 4 : Prince (commercial, haute qualité)
which prince 2>/dev/null

# Option 5 : Chrome/Chromium headless
which google-chrome 2>/dev/null || which chromium 2>/dev/null || which chromium-browser 2>/dev/null

Read the full file on GitHub · 546 lines

Files

What ships with it

1 file 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. 10d ago First seen · 546 lines · 78 tokens per session scan B 96758e79637a

Subscribe to this mod's changes

dp-export-pdf is a skill published in the GitHub repository kabde/dp-createur (24 stars, last pushed 4mo ago), licensed MIT. It adds 78 tokens to every session and 4,500 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories