Overview
The yii2-mpdf extension is a Yii2 wrapper component for the mPDF library. It allows users to generate PDF files from UTF-8 encoded HTML, with the ability to handle different languages. This extension offers an easy integration of the mPDF library within a Yii application, along with several enhancements.
Features
- Setup pdf component globally in your Yii application configuration.
- Easily configure mPDF properties and call mPDF methods using a simple array configuration.
- Enhances extension to allow the use of custom CSS files for rendering HTML content.
- Built-in version of bootstrap.css (v3.3.0 modified for mPDF) for easy generation of PDF content from bootstrap markup HTML.
- Ability to prepend inline CSS in addition to your own CSS file.
- Allows the use of object-oriented methods for rendering complex PDF.
- Easy usage of the extension as a Yii widget with minimal configuration.
- Inbuilt integration with yii2-grid extension for exporting grids as PDF and generating advanced PDF reports.
Summary