html-to-pdf-converter

html-to-pdf-converter is a skill for Claude Code, Codex from shan8065/novel-writing-agent-platform. It costs 40 tokens per session (432 once invoked), scanned A, original, MIT.

An HTML-to-PDF conversion tool that turns web pages or HTML documents into PDF files while retaining their styling, layout, images, tables, links, and pagination.

In plain words
What is it for?
Use it to save web pages and HTML reports as PDFs, including multi-page documents with chosen page sizes, orientation, headers, and footers.
Why use it?
It avoids manually recreating a formatted web document for printing, sharing, or archiving.

Skill for Claude CodeCodex

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

Good fit Use it to save web pages and HTML reports as PDFs, including multi-page documents with chosen page sizes, orientation, headers, and footers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shan8065/novel-writing-agent-platform/html-to-pdf-converter
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 shan8065/novel-writing-agent-platform --skill html-to-pdf-converter
Clone the repo
git clone --depth 1 https://github.com/shan8065/novel-writing-agent-platform

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 html-to-pdf-converter

README.md
[![agentmods](https://agentmods.dev/badge/skills/shan8065/novel-writing-agent-platform/html-to-pdf-converter/github.svg)](https://agentmods.dev/skills/shan8065/novel-writing-agent-platform/html-to-pdf-converter)
Your own site
<a href="https://agentmods.dev/skills/shan8065/novel-writing-agent-platform/html-to-pdf-converter"><img src="https://agentmods.dev/badge/skills/shan8065/novel-writing-agent-platform/html-to-pdf-converter/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 html-to-pdf-converter

Your own site · 80×15
<a href="https://agentmods.dev/skills/shan8065/novel-writing-agent-platform/html-to-pdf-converter"><img src="https://agentmods.dev/badge/skills/shan8065/novel-writing-agent-platform/html-to-pdf-converter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 432 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.00040 $0.00432
Opus 5 $0.00020 $0.00216
Sonnet 5 $0.00008 $0.00086
Haiku 4.5 $0.00004 $0.00043

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

Security

Grade A, and why

html-to-pdf-converter 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 11d 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.

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_backup/html-to-pdf-converter/SKILL.md · 59 lines

What it actually says

HTML转PDF转换器

功能

专业的HTML到PDF转换助手,能够:

  • 精确1:1转换HTML文件为PDF格式
  • 保留所有CSS样式、布局和格式
  • 支持图片、表格、链接等所有HTML元素
  • 保持页面尺寸和分页正确
  • 支持多页HTML文档转换

使用场景

  • 需要将网页保存为PDF时
  • 需要将HTML报告转换为PDF时
  • 需要打印HTML内容但希望保留格式时
  • 需要归档HTML文档为PDF格式时

转换能力

支持的功能

  • 完整的CSS样式渲染
  • 外部资源加载(图片、字体等)
  • 多页文档处理
  • 自定义页面尺寸
  • 页眉页脚设置
  • 方向设置(纵向/横向)

输出质量

  • 1:1精确还原
  • 矢量图形支持
  • 高清图片保留
  • 文本可选择和复制
  • 链接保持可点击

工作流程

  1. 接收HTML文件路径或HTML内容
  2. 分析HTML结构和样式
  3. 配置PDF转换参数
  4. 执行转换过程
  5. 验证转换结果
  6. 输出PDF文件

输出格式

  • 标准PDF文件格式
  • 可选择保存路径
  • 转换完成后的确认信息
  • 可选的转换日志

转换方法

可以使用以下工具和方法进行转换:

  • Puppeteer/Playwright(推荐,使用无头浏览器转换)
  • wkhtmltopdf(传统工具)
  • WeasyPrint(Python库)
  • 其他专业HTML转PDF服务
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. 11d ago First seen · 59 lines · 40 tokens per session scan A c4a406ac12c6

Subscribe to this mod's changes

html-to-pdf-converter is a skill published in the GitHub repository shan8065/novel-writing-agent-platform (3 stars, last pushed 5mo ago), licensed MIT. It adds 40 tokens to every session and 432 once invoked, about $0.0002 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