Dompdf
HTML to PDF converter for PHP observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 95
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 23.5
- age_days: 5042
- days_rel: 44
- days_push: 31
- n_releases_24m: 9
Adoption not part of the score
11177 stars · 1838 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Dompdf is an HTML to PDF converter implemented as a PHP library, functioning as a mostly CSS 2.1-compliant HTML layout and rendering engine. It renders HTML documents with stylesheets, images, tables, and basic SVG into PDF files without requiring external PDF libraries.
Use cases
- generate pdf invoices from html templates in php
- convert html reports to pdf documents
- render styled html with css into downloadable pdfs
- create pdf documents server-side with php
- generate pdf receipts from web application data
- embed custom fonts in generated pdf files
When to choose
- you need to generate PDFs from HTML/CSS in a PHP application
- you want a pure-PHP solution with no external PDF binary dependencies
- your documents use CSS 2.1 layout, tables, and images
- you need Unicode support via embedded TrueType fonts
When to avoid
- you need pixel-perfect rendering of modern CSS3 or JavaScript-driven pages
- your HTML input is poorly formed, since dompdf is not tolerant of invalid markup
- you need very high performance or low memory usage for large documents
- you are not working in PHP
Facets
library · maturity stable
pdf templating parser pdf web-development backend php cross-platform html-to-pdf css-rendering pdf-generation php-library web-server
2 sources
- readme: https://github.com/dompdf/dompdf · fetched 2026-08-28 · 0738a4ef19f7
- homepage: https://dompdf.github.io/ · fetched 2026-08-29 · c85873b6ea47
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dompdf/dompdf | main | 95 |
| dompdf/php-font-lib | backend | 60 |
| dompdf/php-svg-lib | backend | 69 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem