PHPackages                             einhasad/mpdf-light - 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. einhasad/mpdf-light

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

einhasad/mpdf-light
===================

Lightweight mPDF fork without font subsetting

v8.2.4(1y ago)1899↓85.7%GPL-2.0-onlyPHPPHP ^5.6 || ^7.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

Since Oct 19Pushed 1y agoCompare

[ Source](https://github.com/einhasad/mpdf-light)[ Packagist](https://packagist.org/packages/einhasad/mpdf-light)[ Docs](https://mpdf.github.io)[ Fund](https://www.paypal.me/mpdf)[ RSS](/packages/einhasad-mpdf-light/feed)WikiDiscussions development Synced 2d ago

READMEChangelog (1)Dependencies (12)Versions (2)Used By (0)

Light mPDF

Light mPDF is a lightweight fork of mpdf/mpdf that comes without bundled fonts. By excluding the fonts, the package size is significantly reduced from approximately 95 MB to just 7 MB. This makes Light mPDF ideal for projects that don’t require the default fonts and prefer a smaller footprint.

It is based on [FPDF](http://www.fpdf.org/) and [HTML2FPDF](http://html2fpdf.sourceforge.net/)(see [CREDITS](CREDITS.txt)), with a number of enhancements. mPDF was written by Ian Back and is released under the [GNU GPL v2 licence](LICENSE.txt).

[![Latest Stable Version](https://camo.githubusercontent.com/7a6be19c0482aec8da55fcbab545b02f64c098fb6a848ccc788b66354ecc34c3/68747470733a2f2f706f7365722e707567782e6f72672f65696e68617361642f6d7064662d6c696768742f762f737461626c65)](https://packagist.org/packages/einhasad/mpdf-light)[![Total Downloads](https://camo.githubusercontent.com/1eb2a676fea0b0c571ab85ee60b6eb9de9d3ad9403e37c70bea7642cbf6eba52/68747470733a2f2f706f7365722e707567782e6f72672f65696e68617361642f6d7064662d6c696768742f646f776e6c6f616473)](https://packagist.org/packages/einhasad/mpdf-light)[![License](https://camo.githubusercontent.com/301a78e811f73ee32a01ff92df0a22bbc675930e445f5b91ce2c3d2350165551/68747470733a2f2f706f7365722e707567782e6f72672f65696e68617361642f6d7064662d6c696768742f6c6963656e7365)](https://packagist.org/packages/einhasad/mpdf-light)

> ⚠ 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.

Installation
============

[](#installation)

Official installation method is via composer and its packagist package [einhasad/mpdf-light](https://packagist.org/packages/einhasad/mpdf-light).

```
$ composer require einhasad/mpdf-light

```

Usage
=====

[](#usage)

The simplest usage (since version 7.0) of the library would be as follows:

```
