PHPackages                             alhoqbani/laravel-pdf - 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. alhoqbani/laravel-pdf

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

alhoqbani/laravel-pdf
=====================

Laravel wrapper for mPDF 7.0

0.0.1(8y ago)116MITPHPPHP ^7.0

Since Nov 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alhoqbani/laravel-pdf)[ Packagist](https://packagist.org/packages/alhoqbani/laravel-pdf)[ Docs](https://github.com/alhoqbani/laravel-pdf)[ RSS](/packages/alhoqbani-laravel-pdf/feed)WikiDiscussions master Synced 2mo ago

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

Laravel wrapper for mPDF 7.0
============================

[](#laravel-wrapper-for-mpdf-70)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ffedb54f81ff8e16d8c1178db01fde1e693e4f8b5d73d71fc83f9b1eec1a3e27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c686f7162616e692f6c61726176656c2d7064662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alhoqbani/laravel-pdf)[![Build Status](https://camo.githubusercontent.com/ee2b3e15ce7989deacebcd6bc595d569de2133d393ff4fb300ed42bebc0fd2f6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616c686f7162616e692f6c61726176656c2d7064662f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/alhoqbani/laravel-pdf)[![SensioLabsInsight](https://camo.githubusercontent.com/4f53b6dcfb7c41afddd5b2bbe4e49d0b9b2bb94a221b718b1dc51afeecb37fc4/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f7878787878787878782e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/xxxxxxxxx)[![Quality Score](https://camo.githubusercontent.com/e5552c6a2967422bf9a2c24990137fc2b7d8cf68b9da832b69f924e9ee38604b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616c686f7162616e692f6c61726176656c2d7064662e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/alhoqbani/laravel-pdf)[![Total Downloads](https://camo.githubusercontent.com/991a124fbd35e5a962ff4e96dc36f18529a08027288c052ea2b34a1aa96847df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c686f7162616e692f6c61726176656c2d7064662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alhoqbani/laravel-pdf)

Laravel wrapper for mPDF 7.0

> # UNDER DEVELOPMENT. Do NOT use for production
>
> [](#under-development-do-not-use-for-production)

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

[](#installation)

You can install the package via composer:

```
composer require 'alhoqbani/laravel-pdf:@dev'
```

Usage
-----

[](#usage)

Start by publishing the config file:

```
php artisan vendor:publish --provider "Alhoqbani\PDF\PDFServiceProvider"
```

Edit the config file. You can add any extra configuration to be passed to the `Mpdf` constructor.

To us the Mpdf library directly, you can get a pre-configured instance of `Mpdf`

```
