AltHub

Kozea/WeasyPrint Alternatives

HTML/CSS to PDF rendering

WeasyPrint is a Python-based visual rendering engine that converts HTML and CSS documents into PDFs using its own layout engine.

9.6kPythonBSD-3-Clauseactive · last push 26d agoGitHub

Same job, different approach

Solves the same problem with a different architecture or at a different layer. Expect to rewrite the integration.

LibrePDF/OpenPDFGitHub

Java library for creating and editing PDFs with HTML-to-PDF support; choose it for JVM projects needing a broader PDF toolset.

OpenPDF is an open-source Java library for creating, editing, rendering, and encrypting PDF documents, as well as generating PDFs from HTML. It is licensed under the LGPL and MPL.

4.4k
Java
NOASSERTION
active2mo ago
dompdf/dompdfGitHub

PHP HTML-to-PDF converter; use it for PHP projects that need CSS-based PDF rendering.

HTML to PDF converter for PHP

11.2k
PHP
LGPL-2.1
active2mo ago
gastongouron/ironpressGitHub

Pure Rust HTML-to-PDF converter with its own layout engine; use it for a Rust toolchain without browser dependencies.

Pure Rust PDF converter, no browser, no external dependencies. Supports HTML with inline CSS, Markdown, and document conversion with a built-in layout engine.

670
Rust
MIT
active28d ago

Older generation, or narrower

An earlier or more limited way to do the job. Still the right call when you need something small, proven, or CPU-only.

xhtml2pdf/xhtml2pdfGitHub

Older Python HTML-to-PDF library based on ReportLab; choose it if you need ReportLab integration but accept limited CSS support.

A library for converting HTML into PDFs using ReportLab

2.4k
Python
Apache-2.0
active29d ago
danfickle/openhtmltopdfGitHub

Older Java HTML-to-PDF library based on Flying Saucer; choose it for JVM projects needing SVG support but note it's unmaintained.

An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!

2.2k
Java
NOASSERTION
dormant2.3y ago

End-user tools

Does the same job, but ships as an app. Useful to a person, not swappable into a codebase.

alvarcarto/url-to-pdf-apiGitHub

Self-hosted web service for converting URLs to PDF, not a library you can embed.

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.

7.1k
HTML
MIT
dormant2.7y ago
wkhtmltopdf/wkhtmltopdfGitHub

Standalone command-line tool using WebKit for HTML-to-PDF conversion; use it if you prefer a CLI tool.

Convert HTML to PDF using Webkit (QtWebKit)

14.6k
C++
LGPL-3.0
archived3.9y ago

Listed as an alternative to

These projects were analysed and named WeasyPrint among their alternatives. The relationship is not symmetric — how WeasyPrint rates them is a separate judgement, made when WeasyPrint is analysed in its own right.

QuestPDF/QuestPDFGitHub

calls WeasyPrint “Choose for Python projects needing HTML/CSS-to-PDF rendering with high quality.”

QuestPDF is a modern library for PDF document generation. Its fluent C# API lets you design complex layouts with clean, readable code. Create documents using a flexible, component-based approach.

14.2kC#active
bpampuch/pdfmakeGitHub

calls WeasyPrint “choose in a Python stack for high-fidelity HTML/CSS-to-PDF rather than JS JSON layout.”

Client/server side PDF printing in pure JavaScript

12.3kJavaScriptactive
RelaxedJS/ReLaXedGitHub

calls WeasyPrint “choose when you need a Python HTML/CSS-to-PDF library without a headless browser”

Create PDF documents using web technologies

11.8kJavaScriptslowing
dompdf/dompdfGitHub

calls WeasyPrint “Python HTML/CSS-to-PDF engine with strong CSS paged media support; choose for Python stacks.”

HTML to PDF converter for PHP

11.2kPHPactive
Hopding/pdf-libGitHub

calls WeasyPrint “Choose for HTML/CSS to PDF in Python; not for direct PDF manipulation.”

Create and modify PDF documents in any JavaScript environment

8.6kTypeScriptdormant
alvarcarto/url-to-pdf-apiGitHub

calls WeasyPrint “Python library that renders HTML/CSS to PDF with its own layout engine; pick when you want no Chrome/Puppeteer dependency in a Python stack.”

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.

7.1kHTMLdormant
microlinkhq/browserlessGitHub

calls WeasyPrint “Choose for Python-native HTML-to-PDF rendering without a browser, trading JS runtime for Python dependencies.”

The headless Chrome/Chromium driver on top of Puppeteer. Take screenshots, generate PDFs, extract text and HTML with a production-ready API.

1.8kJavaScriptactive