Html To Pdf
Converts HTML web pages or code snippets into clean, formatted PDF documents quickly and reliably.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add html-to-pdf npx -- -y @trustedskills/html-to-pdf
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"html-to-pdf": {
"command": "npx",
"args": [
"-y",
"@trustedskills/html-to-pdf"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill converts HTML content into PDF documents. It takes an HTML string as input and outputs a downloadable PDF file, preserving formatting and layout from the original HTML. This is useful for generating reports, invoices, or any document requiring formatted presentation beyond plain text.
When to use it
- Generating invoices or receipts from data pulled from a database.
- Creating printable reports based on dynamically generated HTML content.
- Converting marketing emails into PDF format for archival purposes.
- Producing formatted documents from web pages, preserving styling and images.
Key capabilities
- HTML to PDF conversion
- Preserves formatting and layout
- Output as downloadable PDF file
Example prompts
- "Convert this HTML:
<p>Hello world!</p>into a PDF." - "Please generate a PDF from the following HTML string: [long HTML content]"
- “Create a PDF of this webpage: https://www.example.com”
Tips & gotchas
The skill requires valid and well-formed HTML as input; malformed HTML may result in unexpected output or errors. Complex HTML with JavaScript might not render correctly within the PDF.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.