Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

WeasyPrint

> 前端框架
Open source

The awesome document factory

9.5K stars0 likes1 views
WebsiteGitHub

About

The awesome document factory

The Awesome Document Factory

WeasyPrint is a smart solution helping web developers to create PDF documents. It turns simple HTML pages into gorgeous statistical reports, invoices, tickets…

From a technical point of view, WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. WeasyPrint is free software made available under a BSD license.

It is based on various libraries but not on a full rendering engine like WebKit or Gecko. The CSS layout engine is written in Python, designed for pagination, and meant to be easy to hack on.

  • Free software: BSD license
  • For Python 3.10+, tested on CPython and PyPy
  • Documentation: https://doc.courtbouillon.org/weasyprint
  • Examples: https://weasyprint.org/#samples
  • Changelog: https://github.com/Kozea/WeasyPrint/releases
  • Code, issues, tests: https://github.com/Kozea/WeasyPrint
  • Code of conduct: https://www.courtbouillon.org/code-of-conduct
  • Professional support: https://www.courtbouillon.org
  • Donation: https://opencollective.com/courtbouillon

WeasyPrint has been created and developed by Kozea (https://kozea.fr/). Professional support, maintenance and community management is provided by CourtBouillon (https://www.courtbouillon.org/).

Copyrights are retained by their contributors, no copyright assignment is required to contribute to WeasyPrint. Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion is licensed under the BSD 3-clause license, without any additional terms or conditions. For full authorship information, see the version control history.

Issues· 149 open

View all issuesOpen on GitHub
  • #2946

    Inline-block with surrounding whitespace wraps its last word since 70.0 (Pango < 1.52)

    Updated Sep 29, 2026
  • #2944

    Respect heading hierarchy

    Updated Sep 28, 2026
  • #2942

    PDF/UA-1: links whose text is in a child element, or generated by CSS Notes, are not tagged as Link

    bugUpdated Sep 28, 2026
  • #2941

    A link that is a flex item gets no link annotation

    bugUpdated Sep 28, 2026
  • #2923

    Gradient with three stops looks different in 70.0

    bugUpdated Sep 27, 2026
  • #2936

    support basic authentication

    featureUpdated Sep 27, 2026
  • #2937

    Nested `@media print` inside `body` not taken into account.

    featureUpdated Sep 27, 2026
  • #2935

    Using fontTools instead of HarfBuzz-Subset for font "DejaVu Sans". This will be unsupported in future versions of WeasyPrint. Please install HarfBuzz-Subset >= 4.1.0 with your package manager.

    Updated Sep 24, 2026
  • #1232

    WeasyPrint announcements

    Updated Sep 23, 2026
  • #2927

    Creating font names using hyphens causes problems with some other applications

    Updated Sep 20, 2026

> Tags

Pythonconvertercsshtmlpdf

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架