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.
Scanned 6/8/2026
Install via CLI
openskills install agentskillexchange/skills---
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/)
No comments yet. Be the first to comment!