PHPackages                             los/lospdf - 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. los/lospdf

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

los/lospdf
==========

ZF2 module to wrapper some pdf generation libraries

1.0.1(10y ago)17.7k5BSD-3-ClausePHPPHP &gt;=5.4

Since Feb 23Pushed 10y ago2 watchersCompare

[ Source](https://github.com/Lansoweb/LosPdf)[ Packagist](https://packagist.org/packages/los/lospdf)[ RSS](/packages/los-lospdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

LosPdf
======

[](#lospdf)

[![Latest Stable Version](https://camo.githubusercontent.com/8298864a03fd56e3032276dfa5d613028027f27887a707cf11f3000cb9923d49/68747470733a2f2f706f7365722e707567782e6f72672f6c6f732f6c6f737064662f762f737461626c652e737667)](https://packagist.org/packages/los/lospdf) [![Total Downloads](https://camo.githubusercontent.com/6e6efa2be91323669e914411b7763e881d9bb4e38d584dd9f6483c4ef1f9240c/68747470733a2f2f706f7365722e707567782e6f72672f6c6f732f6c6f737064662f646f776e6c6f6164732e737667)](https://packagist.org/packages/los/lospdf) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/4e31937ca50a59c52109a6ecf2e583347a0ca673f1da9459bcc43e0abd77bd42/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c616e736f7765622f4c6f735064662f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Lansoweb/LosPdf/?branch=master) [![SensioLabs Insight](https://camo.githubusercontent.com/529e4c9d2cb2fb890880172ec18ee25683bbd6bba83676ce949d3465c445605a/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f66333735333937612d626465312d346235322d383066372d3931663335316630616534632e7376673f7374796c653d666c6174)](https://insight.sensiolabs.com/projects/f375397a-bde1-4b52-80f7-91f351f0ae4c) [![Dependency Status](https://camo.githubusercontent.com/1b7fd15b320b03f742ec4b895de39904fb708f08d50cfb787698af5a1c95e5c5/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534646138333663633162626264356638323030303335372f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/54da836cc1bbbd5f82000357)

Introduction
------------

[](#introduction)

This ZF2 module provides a wrapper to [mPdf](http://www.mpdf1.com) (more coming) to generate PDF documents from html.

Requirements
------------

[](#requirements)

- [Zend Framework 2](http://framework.zend.com/)
- [mPdf](http://www.mpdf1.com)

Instalation
-----------

[](#instalation)

Instalation can be done with composer ou manually

### Installation with composer

[](#installation-with-composer)

For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

1. Enter your project directory
2. Create or edit your `composer.json` file with following contents:

    ```
    {
        "require": {
            "los/lospdf": "1.*",
            "mpdf/mpdf" : ">=v5.7.4",
        }
    }
    ```
3. Run `php composer.phar install`
4. Open `my/project/directory/config/application.config.php` and add `LosPdf` to your `modules`

```
```php
