html-to-pdf

Convert HTML files, URLs, or streams to PDFs with Puppeteer and RTL support.

45|13|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/aviz85/claude-skills-library --skill html-to-pdf-aviz85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: html-to-pdf
Source: https://github.com/aviz85/claude-skills-library/tree/main/plugins/html-to-pdf/skills/html-to-pdf
Command: npx skills add https://github.com/aviz85/claude-skills-library --skill html-to-pdf-aviz85

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires puppeteer, and includes scripts (resource) components.

What problem does it solve?

This skill converts HTML into pixel-perfect PDFs, enabling reliable rendering of complex layouts including Hebrew/RTL text, reducing manual adjustments.

Core Features & Use Cases

  • Pixel-perfect rendering using Puppeteer for accurate PDF generation from HTML
  • Automatic RTL detection and Hebrew/RTL support for multilingual documents
  • Flexible formatting options such as page size, margins, and multi-page handling
  • Use Case: Generate invoices, reports, or web pages into portable, print-ready PDFs with correct RTL layout

Quick Start

Convert an HTML document or URL to a PDF with Hebrew/RTL support using the html-to-pdf skill.

Frequently Asked Questions about html-to-pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert HTML to PDF with correct Hebrew and RTL text rendering?

To convert HTML to PDF with Hebrew and RTL text, this skill uses Puppeteer to apply automatic RTL detection and pixel-perfect rendering, ensuring proper font loading and layout for multilingual documents.

Can I generate a PDF directly from a web URL or do I need a local HTML file?

You can generate a PDF directly from a web URL, local HTML files, or HTML streams. The skill processes these inputs using Puppeteer to apply flexible PDF options like page size, margins, and multi-page handling.

Does Puppeteer support complex multi-page layouts and custom margins for PDF generation?

Puppeteer supports complex multi-page layouts and custom margins for PDF generation. This skill leverages those flexible formatting options to create portable, print-ready PDFs from your HTML content.

What is the best way to automate converting HTML streams into print-ready PDFs?

The best way to automate converting HTML streams into print-ready PDFs is using this Puppeteer-based skill, which handles font loading, RTL detection, and pixel-perfect rendering without manual adjustments.

Why does Hebrew text appear misaligned when rendering HTML to PDF?

Hebrew text appears misaligned in PDFs due to missing RTL detection and improper font loading. This skill resolves these issues by applying automatic RTL support and accurate font handling during Puppeteer rendering.