WeasyPrint is a visual rendering engine that converts HTML and CSS documents to PDF. Its Python-based layout engine is designed specifically for pagination and implements web standards intended for printed documents.
It can create reports, invoices, tickets and other documents while retaining features such as hyperlinks, bookmarks, attachments, forms and vector graphics.
This is free and open source software.
Key Features
- Convert HTML and CSS content to PDF from the command line or Python API.
- Provide extensive support for CSS 2.1 and numerous W3C CSS specifications.
- Use a layout engine designed specifically for paged media.
- Render raster images and SVG graphics, with SVG retained as vectors in PDF output.
- Create internal and external hyperlinks.
- Generate PDF bookmarks from document headings.
- Embed file attachments in generated documents.
- Create interactive PDF forms.
- Generate PDF/A and PDF/UA documents.
- Automatically embed and subset fonts.
- Load resources from local files, HTTP, FTP and data URIs.
- Use author, user and HTML5 user-agent stylesheets.
Website: github.com/Kozea/WeasyPrint
Support:
Developer: Kozea
License: BSD 3-Clause “New” or “Revised” License
WeasyPrint is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| PDF Development Libraries | |
|---|---|
| PDFBox | Create, render, print, split, merge, alter, verify and extract text and metadata |
| TCPDF | PHP class for generating PDF documents |
| Poppler | Library for rendering PDF files, and examining or modifying their structure |
| PDFKit | PDF document generation library for Node and the browser |
| pdfcpu | PDF processing library |
| Apache FOP | Print formatter driven by XSL formatting objects |
| QPDF | Library and programs that inspect and manipulate the structure of PDF files |
| PoDoFo | Parse PDF files and modify their contents into memory |
| OpenPDF | Library for creating and editing PDF files; fork of iText |
| xhtml2pdf | HTML to PDF converter using Python |
| libHaru | Library for generating PDFs |
| CapyPDF | Fully color managed PDF generation library |
| pdf-lib | Create and modify PDF documents in a JavaScript environment |
| PDFio | PDF read/write library |
| PDFsharp | .NET library for processing PDF files |
| JasperReports | Reporting engine written in Java |
| CamlPDF | OCaml library for reading, writing and modifying PDF files |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |


Please read our Comment Policy before commenting.