single-page-pdf-export

single-page-pdf-export is a skill for Claude Code, Codex from cyberelf/agent_skills. It costs 94 tokens per session (746 once invoked), scanned A, original, MIT.

A browser-based export tool that turns a local HTML page or web page into one tall PDF page. The PDF has no browser print headers or footers.

In plain words
What is it for?
Use it for long invitations, web pages, and other HTML documents that need a single-page PDF with automatically calculated height.
Why use it?
It avoids unwanted page breaks and print decorations when the content should remain a single continuous page.

Skill for Claude CodeCodex

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

Good fit Use it for long invitations, web pages, and other HTML documents that need a single-page PDF with automatically calculated height.

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

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 single-page-pdf-export

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cyberelf/agent_skills/single-page-pdf-export"><img src="https://agentmods.dev/badge/skills/cyberelf/agent_skills/single-page-pdf-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 746 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.00094 $0.00746
Opus 5 $0.00047 $0.00373
Sonnet 5 $0.00019 $0.00149
Haiku 4.5 $0.00009 $0.00075

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

Security

Grade A, and why

single-page-pdf-export 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/export-single-page-pdf.mjs), 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.

skills/single-page-pdf-export/SKILL.md · 69 lines

How it starts

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

Single-Page PDF Export Skill

Export an HTML file or loaded page to a single-page PDF whose height is calculated from the rendered content, with no browser header or footer.

Use This Skill For

  • Local .html files that should become a single long PDF
  • Pages that should not be split across multiple PDF pages
  • Requests to remove browser print headers and footers
  • Pages using viewport-height layouts like min-h-screen that break normal printing

Inputs To Resolve

Before exporting, determine:

  1. The source page:
    • Local file path like /user/test/page.html
    • Or a file:///, http://, or https:// URL
  2. The output PDF path:
    • If the user does not specify one, default to the source filename plus -single-page.pdf

Workflow

  1. Confirm the source exists if it is a local file.
  2. Ensure a Chromium-based browser is installed:
    • Prefer Chrome, then Edge
    • The asset script checks common Windows install paths and CHROME_PATH
  3. Ensure Node dependencies are available in the current workspace:
    • Install puppeteer-core with npm install --no-save puppeteer-core
    • If you want to verify the resulting page count, also install pdf-lib
  4. Run the bundled exporter:
node ./assets/export-single-page-pdf.mjs "<input>" "<output>"
  1. Validate the result:
    • Confirm the PDF file exists
    • If pdf-lib is available, verify page count is 1

Validation Command

Use this only when you need to confirm that the PDF is truly single-page:

node --input-type=module -e "import { readFileSync } from 'node:fs'; import { PDFDocument } from 'pdf-lib'; const bytes = readFileSync(process.argv[1]); const pdf = await PDFDocument.load(bytes); console.log('pages=' + pdf.getPageCount());" "<output.pdf>"

Notes

  • The exporter freezes h-screen and min-h-screen utilities to pixel values before printing. This avoids the common feedback loop where print page height changes the layout height and forces pagination.
  • The exporter disables animations and transitions before measuring the page.
  • The exporter sets a custom print page size and zero margins, and disables browser headers and footers.

Read the full file on GitHub · 69 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. 9d ago First seen · 69 lines · 94 tokens per session scan A 75a76a939c4e

Subscribe to this mod's changes

single-page-pdf-export is a skill published in the GitHub repository cyberelf/agent_skills (2 stars, last pushed 14d ago), licensed MIT. It adds 94 tokens to every session and 746 once invoked, about $0.0005 per session on Opus 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-08-31.

Related

Other skills, from other repositories

km-content-extraction

Content extraction routing for KM - local documents (HWP/HWPX/PDF/DOCX/XLSX), web, and vault sources. Use when input is a local file or when km-workflow reaches Phase 2 with a non-URL input.

treylom/knowledge-manager · 57 tokens

thumbnail-of-pptx

Capture a thumbnail image of a slide from a OneDrive/Office presentation link. Opens the PowerPoint web viewer in a headless browser and screenshots the slide canvas, producing a clean 16:9 image with no viewer chrome. Works even when the PPTX is not downloadable (e.g. personal OneDrive shares), since it screenshots…

pamelafox/presentation-skills · 111 tokens

svg-press

Teaches agents how to hand-craft self-contained SVG diagrams that render correctly in browsers, tags, and Playwright PDF/PNG. Covers containment math, viewBox sizing, arrow construction, text hierarchy, KDCube brand color tokens, semantic zone fills, badges, the PNG inspection loop, writepng parameters, multi-diagram…

kdcube/kdcube · 87 tokens

openclaw-rpa

Record browser, Excel, Word & API actions once — replay without the LLM: faster, cheaper, no hallucinations. github.com/laziobird/openclaw-rpa . Supports computer-use automation: web clicks/fill/extract, local Excel (.xlsx via openpyxl), Word (.docx via python-docx), HTTP API calls (httpx GET/POST), and auto-login…

laziobird/openclaw-rpa · 163 tokens

export-presentation

Export HTML slide presentations to PDF or PNG screenshots.

jtsternberg/claude-plugins · 14 tokens

file-download

Download files from websites, save PDFs, and read downloaded content. Trigger when the user asks to: download a file, save a PDF, export a document, fetch a file from a URL, grab a report, download and read a PDF, or save page content as a file.

billy-enrizky/openbrowser-ai · 60 tokens