# mpdf **Repository Path**: comm-package/mpdf ## Basic Information - **Project Name**: mpdf - **Description**: mpdf - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-21 - **Last Updated**: 2023-05-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README mPDF is a PHP library which generates PDF files from UTF-8 encoded HTML. 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). [](https://packagist.org/packages/mpdf/mpdf) [](https://travis-ci.org/mpdf/mpdf) [](https://packagist.org/packages/mpdf/mpdf) [](https://packagist.org/packages/mpdf/mpdf) > Note: 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. Requirements ============ PHP versions and extensions --------------------------- - `mPDF >=7.0` is supported on PHP `^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0` - `PHP 7.3` is supported since `mPDF v7.1.7` - `PHP 7.4` is supported in `development` branch, official release will be out with stable PHP PHP `mbstring` and `gd` extensions have to be loaded. Additional extensions may be required for some advanced features such as `zlib` for compression of output and embedded resources such as fonts, `bcmath` for generating barcodes or `xml` for character set conversion and SVG handling. Known server caveats -------------------- mPDF has some problems with fetching external HTTP resources with single threaded servers such as `php -S`. A proper server such as nginx (php-fpm) or Apache is recommended. Support us ========== Consider supporting development of mPDF with a donation of any value. [Donation button][1] can be found on the [main page of the documentation][1]. Installation ============ Official installation method is via composer and its packagist package [mpdf/mpdf](https://packagist.org/packages/mpdf/mpdf). ``` $ composer require mpdf/mpdf ``` Usage ===== The simplest usage (since version 7.0) of the library would be as follows: ```php WriteHTML('