AltHub

dompdf/dompdf Alternatives

HTML to PDF conversion in PHP

Dompdf is a pure-PHP library that renders HTML and CSS 2.1 into PDF files.

11.2kPHPLGPL-2.1active · last push 2mo 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 that can also convert HTML to PDF; choose for JVM projects needing broader PDF manipulation.

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
Kozea/WeasyPrintGitHub

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

The awesome document factory

9.6k
Python
BSD-3-Clause
active26d ago
KnpLabs/snappyGitHub

PHP wrapper for wkhtmltopdf; choose when you need better CSS support and can install a binary.

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage

4.5k
PHP
MIT
active3mo ago
danfickle/openhtmltopdfGitHub

JVM HTML-to-PDF library using PDFBox; choose for Java with accessible PDF support.

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
xhtml2pdf/xhtml2pdfGitHub

Python HTML-to-PDF using ReportLab; choose for Python when you want an all-Python tool.

A library for converting HTML into PDFs using ReportLab

2.4k
Python
Apache-2.0
active29d 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.

spipu/html2pdfGitHub

PHP HTML-to-PDF library using TCPDF; simpler but less CSS support than dompdf.

OFFICIAL PROJECT | HTML to PDF converter written in PHP

1.8k
PHP
OSL-3.0
slowing1.4y ago
tecnickcom/TCPDFGitHub

Legacy PHP PDF library that can render basic HTML; choose if you need low-level control and already use TCPDF.

Deprecated: PHP PDF library, superseded by tc-lib-pdf (https://github.com/tecnickcom/tc-lib-pdf)

4.5k
PHP
NOASSERTION
active2mo ago

Listed as an alternative to

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

parallax/jsPDFGitHub

calls dompdf “Choose it in PHP projects to convert HTML to PDF; jsPDF is a JavaScript library, not for PHP backends.”

Client-side JavaScript PDF generation for everyone.

31.3kJavaScriptactive
QuestPDF/QuestPDFGitHub

calls dompdf “Choose for PHP projects needing HTML-to-PDF rendering.”

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 dompdf “choose when you are in a PHP stack and need HTML/CSS-to-PDF rather than JavaScript JSON layouts.”

Client/server side PDF printing in pure JavaScript

12.3kJavaScriptactive
foliojs/pdfkitGitHub

calls dompdf “Use in a PHP project to convert HTML/CSS to PDF, differing in language and conversion approach.”

A JavaScript PDF generation library for Node and the browser

10.7kJavaScriptactive
Kozea/WeasyPrintGitHub

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

The awesome document factory

9.6kPythonactive
Hopding/pdf-libGitHub

calls dompdf “Choose to generate PDFs from HTML in PHP; not for direct PDF editing.”

Create and modify PDF documents in any JavaScript environment

8.6kTypeScriptdormant
alvarcarto/url-to-pdf-apiGitHub

calls dompdf “PHP HTML-to-PDF library with its own CSS rendering; pick when you are in a PHP app and cannot run headless Chrome.”

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

7.1kHTMLdormant
microlinkhq/browserlessGitHub

calls dompdf “Choose if you're in PHP and need HTML-to-PDF without a headless browser, at the cost of CSS fidelity.”

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

1.8kJavaScriptactive