# WeasyPrint HTML and CSS to PDF Document Generator

> WeasyPrint is a Python library by Kozea/CourtBouillon that converts HTML and CSS into PDF documents. It implements a CSS layout engine designed specifically for pagination, supporting web standards for printing including page breaks, headers, page counters, and responsive layouts without relying on a browser engine like WebKit or Gecko.

- Skill: `agentskillexchange/weasyprint-html-and-css-to-pdf-document-generator` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/weasyprint-html-and-css-to-pdf-document-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/weasyprint-html-and-css-to-pdf-document-generator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/weasyprint-html-and-css-to-pdf-document-generator

---


# WeasyPrint HTML and CSS to PDF Document Generator

WeasyPrint is a Python library by Kozea/CourtBouillon that converts HTML and CSS into PDF documents. It implements a CSS layout engine designed specifically for pagination, supporting web standards for printing including page breaks, headers, page counters, and responsive layouts without relying on a browser engine like WebKit or Gecko.

## Installation

Requirements and caveats from upstream:
- WebKit or Gecko. The CSS layout engine is written in Python, designed for
- For Python 3.10+, tested on CPython and PyPy

- Source: https://github.com/Kozea/WeasyPrint
- Extracted from upstream docs: https://raw.githubusercontent.com/Kozea/WeasyPrint/HEAD/README.rst

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/weasyprint-html-css-pdf-document-generator/)

