Update the permissions of the following directory {magento_root}/vendor/mpdf/mpdf/tmp
to allow the web server write access
You can do this by logging onto your server using SSH and navigating to your magento root folder
Run the following command: mkdir --parents ./var/cache/tmp/mpdf; chmod -Rf 777 ./var/cache/tmp/mpdf
Open your FTP software and navigate to the following directory on your server: {magento_root}/var/cache/tmp/mpdf
Right click the tmp
folder and update permissions to write access for the web server user
If the directory doesn't exist, create it first.
After changing the directory permissions, please don't forget to clear the Magento cache.