WeasyPrint
WeasyPrint: Open Source PDF Generator for Web Pages
WeasyPrint is an open source Python library that can generate PDF documents from HTML and CSS files. It turns web pages into printable documents.
What is WeasyPrint?
WeasyPrint is an open source Python library that can generate PDF documents from HTML and CSS files. It allows developers to convert web pages and stylesheets to PDF by utilizing the power of web standards. Some key features of WeasyPrint include:
- Supports HTML5 and CSS2.1, allowing you to leverage web standards for PDF generation
- Renders complex web pages with great accuracy, including features like backgrounds, borders and CSS floats
- Has a small footprint and focuses only on PDF generation, without extra dependencies like a heavy browser engine
- Integrates easily into Python applications and frameworks for programmatic PDF generation
- Open source under a BSD license and developed transparently on GitHub
In summary, WeasyPrint brings the ability to turn HTML and CSS into PDF documents completely based on open web standards and Python. It can be used to generate PDF versions of reports, invoices, tickets and any other documents with custom styling and branding straight from the web technologies developers already know.
WeasyPrint Features
Features
- Converts HTML+CSS to PDF
- Supports CSS 2.1
- Supports SVG and MathML
- Command-line interface and Python library
- Generates PDFs with metadata
- Supports UTF-8 encoding
- Renders pages asynchronously
- Produces pixel-perfect output
Pricing
- Open Source
Pros
Cons
Official Links
Reviews & Ratings
Login to ReviewThe Best WeasyPrint Alternatives
View all WeasyPrint alternatives with detailed comparison →
Top Development and Web Development and other similar apps like WeasyPrint
Here are some alternatives to WeasyPrint:
Suggest an alternative ❐Wkhtmltopdf
PDFreactor
Prince XML
Pyppeteer