CM Gift Card Documentation / Install & Update / Install mPDF Library

Install mPDF Library

If you want to send PDF invoices to your customers, you need to install the mPDF library. This library generates the PDF gift card from its HTML version.

You can download the mPDF Joomla! library at https://cmext.vn/download/mpdf-joomla-library or https://github.com/cmextension/mpdf/releases.

The mPDF library package is about 45 MB. If your server allows uploads larger than 45 MB, you can install this package with the Joomla! extension installer, just like any other Joomla! extension. However, if you can’t install it by uploading the package in the Upload Package File tab, you can use the Install from Folder tab instead. The following instructions are for installing from a folder.

Log in to your hosting control panel, open the file manager, and go to the tmp folder in your Joomla! root folder. The screenshots below show the cPanel file manager, which is popular and used by many hosting providers.

Upload the mPDF package into this tmp folder. In the screenshot below, the package is named mpdf.zip.

You can use any ZIP extraction tool available in the file manager to extract the file. In cPanel, select the file and click the Extract button on the toolbar. The result is an mpdf folder.

In Joomla!’s Extension Manager, switch to the Install from Folder tab and enter the path to the mpdf folder. If your tmp folder is /home/username/tmp, then the path to the mpdf folder is /home/username/tmp/mpdf.

Click the Check and Install button to install the library. You see a success message on the next page.

The mPDF library is now installed, and you can delete the mpdf.zip file and the mpdf folder from your tmp folder.