PHPackages                             dol/mpdf-bundle - 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. dol/mpdf-bundle

ActiveSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

dol/mpdf-bundle
===============

This bundle integrates mPDF library into your Symfony project.

0.1(7y ago)051MITPHP

Since Jan 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/DarwinOnLine/MpdfBundle)[ Packagist](https://packagist.org/packages/dol/mpdf-bundle)[ Docs](https://github.com/DarwinOnLine/MpdfBundle)[ RSS](/packages/dol-mpdf-bundle/feed)WikiDiscussions master Synced 3d ago

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

MpdfBundle
==========

[](#mpdfbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/5981b73ad47e83ca620379e38f87386f7f5a2db4de08213339df942323df3b7c/68747470733a2f2f706f7365722e707567782e6f72672f646f6c2f6d7064662d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/dol/mpdf-bundle) [![Total Downloads](https://camo.githubusercontent.com/981813d3b8a940faf06311657c675b3e71c1717cc319a7f8ea05c47cf1ad0677/68747470733a2f2f706f7365722e707567782e6f72672f646f6c2f6d7064662d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/dol/mpdf-bundle) [![License](https://camo.githubusercontent.com/f13adf108aae2a473469bd32d1da35418adaa8777186975961c5336b3f0ba1a8/68747470733a2f2f706f7365722e707567782e6f72672f646f6c2f6d7064662d62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/dol/mpdf-bundle) [![Build Status](https://camo.githubusercontent.com/5a4ebbe156631dc2ec53290a2cf30533cc20b800f12fad0edf09da107289b268/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f44617277696e4f6e4c696e652f4d70646642756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/DarwinOnLine/MpdfBundle/build-status/master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/f00b16c43b39f0396bb72c21e7efd8512d5e968f4059f1cf9460eaaad16bb385/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f44617277696e4f6e4c696e652f4d70646642756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/DarwinOnLine/MpdfBundle/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/fd8775170b3e9a04939422c985e2c5f090229979fee274741ec86b9d6b25838a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f44617277696e4f6e4c696e652f4d70646642756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/DarwinOnLine/MpdfBundle/?branch=master)[![FOSSA Status](https://camo.githubusercontent.com/0d701ca44e64cacd0e4746bb1f880677167e56aa19cba61a31bb5ab3759fa1c2/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324644617277696e4f6e4c696e652532464d70646642756e646c652e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2FDarwinOnLine%2FMpdfBundle?ref=badge_shield)

This bundle integrates the [mPDF library](https://mpdf.github.io) in your Symfony project.

**Versions and compatibilities:**

- [![Build Status](https://camo.githubusercontent.com/ce34025759d5c87bac9a0af3e702f62995e1d469d3a7d9575c58073fd98fd1cb/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f44617277696e4f6e4c696e652f4d70646642756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/DarwinOnLine/MpdfBundle) `Master`.
- [![Build Status](https://camo.githubusercontent.com/18655d78f73b97461a17b89ad195ec1113f43e09622a7df4f634d97d58e25178/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f44617277696e4f6e4c696e652f4d70646642756e646c652e706e673f6272616e63683d76312e30)](http://travis-ci.org/DarwinOnLine/MpdfBundle) `V 1.0`.

Installation
------------

[](#installation)

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

#### One step ! Download the Bundle

[](#one-step--download-the-bundle)

Open a command console, enter your project directory and execute:

```
composer require dol/mpdf-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### 1. Download the Bundle

[](#1-download-the-bundle)

Open a command console, enter your project directory and execute:

```
composer require dol/mpdf-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### 2. Enable the Bundle

[](#2-enable-the-bundle)

```
