How to enable saving mails as PDF files
WebMail Lite 8 supports saving messages as PDF files.
PHP 7.1 or above is required for using this feature.
The functionality is disabled by default. To enable it, set Disabled to false in data/settings/modules/MailSaveMessageAsPdfPlugin.config.json file.
Also, you need to download wkhtmltopdf package for your operating system from wkhtmltopdf website. Install it and copy the library file under data/system directory, so the path looks like:
NB: You need to make sure the file permissions are set correctly so that the library can be run from within PHP script.
Also, to make this work, you may need to install additional libraries. In case of CentOS Linux, it's done as follows:
yum install libXrender libXext fontconfig xorg-x11-font-utils.x86_64 xorg-x11-fonts-Type1
In case of Ubuntu, also install the library on system level so all the additional libraries required are installed:
sudo apt install wkhtmltopdf
Once the above steps are done, you should be able to download message files and have them converted to PDF files on-the-fly.