mPDF
PHP library that generates PDF files from UTF-8 encoded HTML.
mPDF is a PHP library that generates PDF files from UTF-8 encoded HTML. It runs inside PHP and needs the mbstring and gd extensions loaded. The project says it is based on FPDF and HTML2FPDF, and its manual lists support for right-to-left and CJK languages. Ian Back wrote it.
Worth knowing
The README calls the software quite dated and points to headless Chrome for state of the art CSS support. Its default branch can differ from the last stable release. A few features need extra PHP extensions, including zlib, bcmath and xml.
Identity
Rendering and deploy
- Install with
- composer require mpdf/mpdf3
Releases
Adoption
Sources
- 2026-11-16: links
mpdf.github.io/ - 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/mpdf/mpdf - 2026-11-16: links, Maintainer, Categories, Runtime, Install with, License model
github.com/mpdf/mpdf/blob/development/README.md - 2026-11-16: First release
mpdf.github.io/about-mpdf/changelog.html - 2026-11-16: Minimum runtime, License
github.com/mpdf/mpdf/blob/v8.3.1/composer.json - 2026-11-16: License
mpdf.github.io/about-mpdf/license.html - 2026-11-16: Multilingual
mpdf.github.io/about-mpdf/features.html - 2026-11-16: Current major version, Last release
repo.packagist.org/p2/mpdf/mpdf.json - 2026-11-16: Contributors
api.github.com/repos/mpdf/mpdf/contributors?per_page=1 - 2026-11-16: Packagist downloads
packagist.org/packages/mpdf/mpdf.json - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/mpdf%2Fmpdf