html-pdf

Convert local HTML files to PDFs using headless Chromium via Playwright.

3|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/kitaekatt/plugins-kit --skill html-pdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: html-pdf
Source: https://github.com/kitaekatt/plugins-kit/tree/main/plugins/awesome-kit/skills/html-pdf
Command: npx skills add https://github.com/kitaekatt/plugins-kit --skill html-pdf

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill eliminates the friction of converting web-based content into professional-grade PDF documents, ensuring that CSS, JavaScript, and web fonts render exactly as they appear in a browser.

Core Features & Use Cases

  • High-Fidelity Rendering: Uses headless Chromium to capture complex layouts, dark/light themes, and dynamic web elements.
  • Flexible Output Modes: Supports both single-page poster layouts for diagrams and standard A4 pagination for print-ready documents.
  • Use Case: Convert a local technical documentation page or a dashboard visualization into a perfectly formatted PDF report for sharing or archival.

Quick Start

Use the html-pdf skill to convert the file report.html into a PDF and open it in your browser.

Frequently Asked Questions about html-pdf

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

FAQPage Schema
How do I convert HTML to PDF without losing CSS and JavaScript rendering?

To convert HTML to PDF with full CSS and JavaScript fidelity, use headless Chromium via Playwright to render the local HTML file. This ensures complex layouts, web fonts, and dynamic elements appear exactly as they do in a browser.

Can I render a single-page HTML poster instead of an A4 paginated PDF?

Yes, HTML to PDF conversion supports both single-page poster layouts for diagrams and standard A4 pagination for print-ready documents. You can configure the scaling to match your desired output format.

Do I need Playwright and Chromium installed to convert local HTML files to PDF?

Yes, converting local HTML files to PDF requires a provisioned environment with Playwright and Chromium installed. The script uses headless Chromium to execute the rendering and generate the final PDF document.

What is the best way to capture dark or light themed HTML content into a PDF?

Using headless Chromium to render HTML to PDF captures dark and light themes accurately. This method preserves the exact styling and dynamic web elements of the local HTML file during the conversion process.

How do I automate generating a print-ready PDF report from a local HTML dashboard?

You can automate HTML to PDF conversion by running a script that uses Playwright to open the local HTML file in headless Chromium. It supports A4 pagination with configurable scaling to create a print-ready PDF report.

Why does my HTML to PDF conversion break complex web layouts?

Complex web layouts may break if the PDF conversion tool lacks full JavaScript and CSS support. Using headless Chromium via Playwright ensures high-fidelity rendering by processing the HTML exactly as a browser would.