AppBreakup
WeasyPrint logo

WeasyPrint

Free, open-source Python engine that turns HTML and CSS into PDF documents.

Verified facts
4 of 4
Alternatives ranked
2
Approved reviews
0
Visits sent from here
0

About WeasyPrint

WeasyPrint is a free HTML-to-PDF engine written in Python, created by Kozea and maintained by CourtBouillon. Developers use it to generate invoices, reports, tickets, letters and even full books from HTML templates styled with CSS, including print features such as page sizes, running headers, tables of contents and different page layouts. It works as a command-line tool or as a Python library you call from web apps such as Django or Flask, so it runs anywhere Python does. Being BSD-licensed, it carries no watermark or per-server fee, which is the main reason teams pick it over commercial engines like Prince or PDFreactor. It does not run JavaScript, so pages that build their layout in the browser need to be rendered to static HTML first. Paid professional support packages and custom development are available from CourtBouillon for teams that need guaranteed help.

Best for: Python developers who want a free, self-hosted way to produce invoices and reports from HTML.

Pros and cons

What works

  • Free and BSD-licensed, with no watermark or server fees
  • Good support for CSS print features like page layouts and running elements
  • Easy to embed in Python web apps or call from the command line

Why people leave

  • Does not execute JavaScript, so charts and dynamic layouts must be pre-rendered
  • Tied to Python, which is extra setup for non-Python stacks
  • Paid support packages are not offered in the US and Canada

Top WeasyPrint alternatives

See all 2
  1. 1Pr
    Prince

    Commercial engine with more advanced book typesetting and JavaScript support, if budget allows.

    66.5
  2. 2DocRaptor logo
    DocRaptor

    Hosted API, so there is no Python setup or server to maintain; free tier for testing.

    59.6

Why people left WeasyPrint

In reviewers' own words, from reviews of the apps they moved to. These are their opinions, not ours.

No switching stories yet. If you moved away from WeasyPrint, review the app you switched to and tell us why.

Reviews

No approved reviews yet. How we verify reviewers

Write a review of WeasyPrint
Your rating of WeasyPrint

Never shown publicly. A work email helps us verify you.

What did you use it for, and what was good or bad? At least 40 characters.

A GitHub username, your company domain, or say you can send a screenshot. Verified reviews count more.

By submitting, you confirm you're at least 16 and agree to our terms. Your name, rating, review and the date are published; your email isn't. See our privacy policy.

WeasyPrint: common questions

Is WeasyPrint free?

Yes. WeasyPrint is free, open-source software.

Is WeasyPrint open source?

No, WeasyPrint is not open source.

What platforms does WeasyPrint run on?

WeasyPrint is available for Windows, macOS, Linux and Self-hosted.

What are the best alternatives to WeasyPrint?

The highest-ranked WeasyPrint alternatives right now are Prince and DocRaptor. See the full ranked list for pricing, platforms and verified facts.

See all 2 WeasyPrint alternatives