HTML to PDF

Convert HTML to PDF with pixel-perfect rendering and excellent Hebrew/RTL support. Use when the user asks to 'convert HTML to PDF', 'generate PDF from HTML', 'create PDF from webpage', 'export to PDF', or needs PDF generation with Hebrew text support.

51 stars 14 forksDocuments & Office Files Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add aviz85/claude-skills-library

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add aviz85/claude-skills-library --skill html-to-pdf
Manual install
git clone --depth 1 https://github.com/aviz85/claude-skills-library.git /tmp/claude-skills-library
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills-library/plugins/html-to-pdf/skills/html-to-pdf ~/.claude/skills/html-to-pdf

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# HTML to PDF Converter

Pixel-perfect HTML to PDF conversion using Puppeteer (Chrome headless). Provides excellent support for Hebrew, Arabic, and other RTL languages with automatic direction detection.

## Why Puppeteer?

- **Pixel-perfect rendering**: Uses actual Chrome engine
- **Full CSS3/HTML5 support**: Flexbox, Grid, custom fonts, backgrounds
- **JavaScript execution**: Renders dynamic content
- **Automatic RTL detection**: Detects Hebrew/Arabic and sets direction
- **Web font support**: Loads custom fonts properly

## Auto-Fit (Built-in, No Flag Needed)

The script automatically handles content overflow:

- **Small overflow (up to ~18%)** → auto-shrinks font size to fit the page
- **Large content** → flows cleanly across multiple pages with smart page-break rules (no cutting headers, table rows, or images in half)
- **Fits perfectly** → does nothing

This runs automatically on every PDF generation. No flags needed.

## CRITICAL: Fit Content to Single Page

**Backgrounds on `html` or `body` cause extra pages!** Put backgrounds on a container element instead:

```css
@page { size: A4; margin: 0; }

html, body {
  width: 210mm;
  height: 297mm;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* NO background here! */
}

.container {
  width: 100%;
  height: 100%;
  padding: 20mm;
  box-sizing: border-box;
  background: linear-gradient(...); /* Background goes HERE */
}
```

**Common causes of extra pages:**
Read the full skill on GitHub

Details

Skill name
html-to-pdf
Path
plugins/html-to-pdf/skills/html-to-pdf/SKILL.md
Repo updated
8 July 2026

FAQ

What does the HTML to PDF skill do?

Convert HTML to PDF with pixel-perfect rendering and excellent Hebrew/RTL support. Use when the user asks to 'convert HTML to PDF', 'generate PDF from HTML', 'create PDF from webpage', 'export to PDF', or needs PDF generation with Hebrew text support.

How do I install the HTML to PDF skill?

Claude Code plugin: /plugin marketplace add aviz85/claude-skills-library. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is HTML to PDF popular?

It lives in aviz85/claude-skills-library, which has 51 GitHub stars and 14 forks.

Related skills

Aviz Skills Installer

51

aviz85/claude-skills-library

Install skills from the AVIZ Skills Library. Use when user wants to install a skill, browse available skills, set up Claude Code skills, or asks about skill installation. Triggers on "install skill", "add skill", "setup skill", "available skills", "skill library", "browse skills".

Software Development14

Calendar

51

aviz85/claude-skills-library

Google Calendar integration via Apps Script API. Use when checking schedule, meetings, today's events, weekly calendar, or adding events.

Productivity & Notes14

Cinematic Slides

51

aviz85/claude-skills-library

Create cinematic HTML presentations with AI video backgrounds, deployed to GitHub Pages. Use for: slides, presentation, deck, cinematic slides, video presentation, animated slides, live presentation.

Documents & Office Files14

HTML to PPTX

51

aviz85/claude-skills-library

Convert HTML to PowerPoint (PPTX) with excellent Hebrew/RTL support. Use when the user asks to 'convert HTML to PowerPoint', 'create presentation from HTML', 'generate PPTX', 'make slides from HTML', or needs to create PowerPoint presentations programmatically.

Documents & Office Files14

Presentation Architect

51

aviz85/claude-skills-library

Transform high-level ideas or briefs into fully structured presentation scripts saved as Markdown files, describing presentations slide by slide with exhaustive detail. Use this skill when users request: (1) Creating presentation blueprints or scripts, (2) Structuring slide decks from concepts, (3) Designing presentation narratives with detailed specifications for content, layout, typography, and visuals, or (4) Creating presentation documentation for designers or presenters.

Documents & Office Files14

Ebook Extractor

59

ratacat/claude-skills

Use when user wants to extract text from ebooks (EPUB, MOBI, PDF). Use for converting ebooks to plain text for analysis, processing, or reading. Handles all common ebook formats.

Documents & Office Files10

Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.