- Joomla! 4+.
- mPDF requirements: https://github.com/mpdf/mpdf.
Download the package of the latest release on https://github.com/cmextension/mpdf/releases, install it with Joomla! Extension Manager just like any other Joomla! extensions.
In your Joomla! extension's code:
jimport('mpdf.mpdf');
$html = '<h1>Hello World!</h1>';
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML($html);
$mpdf->Output();
Online manual of mPDF is available at https://mpdf.github.io/.
- Clone this repository.
- Go to
mpdf
folder. - Run
composer install
to install mPDF.
GNU General Public License Version 2.