Skip to content
r.

mpdf

mpdf/mpdf · Public GitHub repository

PHP library generating PDF files from UTF-8 encoded HTML

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

mpdf live demo screenshot
Captured from the live demo · 2026-11-03

About this project

Author-written excerpt from the project README.

mPDF is a PHP library which generates PDF files from UTF-8 encoded HTML.

It is based on FPDF and HTML2FPDF (see CREDITS), with a number of enhancements. mPDF was written by Ian Back and is released under the GNU GPL v2 licence.

⚠ If you are viewing this file on mPDF GitHub repository homepage or on Packagist, please note that the default repository branch is development which can differ from the last stable release.

Requirements and intended audience

mPDF is a PHP library which generates PDF files from UTF-8 encoded HTML.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-24. Source: https://github.com/mpdf/mpdf/blob/development/README.md

Recorded maintenance information

Last recorded source update: 2026-10-26. Saved release: v8.1.0 · 2022-04-16. These dates do not guarantee ongoing maintenance.

Technologies
PHP
Licence
GPL-2.0. Distributing the software or derivatives can require sharing source under the same licence.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories