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.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Weasyprint Html Css Pdf Document Generator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-weasyprint-html-css-pdf-document-generator)
---
name: "WeasyPrint HTML and CSS to PDF Document Generator"
slug: "weasyprint-html-css-pdf-document-generator"
description: "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."
github_stars: 8841
verification: "security_reviewed"
source: "https://github.com/Kozea/WeasyPrint"
author: "Kozea"
category: "Data Extraction & Transformation"
framework: "Custom Agents"
tool_ecosystem:
github_repo: "Kozea/WeasyPrint"
github_stars: 8841
---
# 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/)