PHPackages                             mypdf/mpdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. mypdf/mpdf

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

mypdf/mpdf
==========

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support

v6.1.4(5y ago)02GPL-2.0PHPPHP 7.0.\*CI failing

Since May 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dahuicyh/mpdf)[ Packagist](https://packagist.org/packages/mypdf/mpdf)[ Docs](https://github.com/dahuicyh/mpdf.git)[ RSS](/packages/mypdf-mpdf/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. It is based on [FPDF](http://www.fpdf.org/)

$mPdf = new mPDF('UTF-8', 'A4', 14, '', 10, 10, 15, 1); $mPdf-&gt;SetDisplayMode('real'); $mPdf-&gt;autoScriptToLang = true; $mPdf-&gt;autoLangToFont = true; $mPdf-&gt;WriteHTML($html); if ($logo) { $mPdf-&gt;Image($logo, 130, 135, 41, 27); } if ($name) { $mPdf-&gt;Image($name, 63, 138, 20, 8); } if (!$pdfName) { $pdfName = self::AGREEMENT\_PATH . rand(1, 1000000) . '.pdf'; } $mPdf-&gt;Output($pdfName);

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2187d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1e322920dbeddd2c44c97de08a9b4bbf9c402d9a8559869f34336bb910e71ce?d=identicon)[dahuicyh](/maintainers/dahuicyh)

---

Tags

phppdfutf-8

### Embed Badge

![Health badge](/badges/mypdf-mpdf/health.svg)

```
[![Health](https://phpackages.com/badges/mypdf-mpdf/health.svg)](https://phpackages.com/packages/mypdf-mpdf)
```

###  Alternatives

[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
