Print to pdf Causing Major Problems

I recently moved my installation to a new Ubuntu 16 server. Everything went well except when I try to print an invoice to pdf. I get no error but jsut a blank window which would appear to be a php error.
Looking at the php error log I appear to be getting many unidentified index errors plus this one:

[Wed Oct 23 19:27:52.870631 2019] [php7:error] [pid 9375] [client 213.152.32.223:56476] PHP Fatal error: Uncaught Error: Call to undefined function mb_regex_encoding() in /var/www/html/SuiteCRM/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php:1234\nStack trace:\n#0 /var/www/html/SuiteCRM/modules/AOS_PDF_Templates/generatePdf.php(152): mPDF->mPDF(β€˜en’, β€˜A4’, β€˜β€™, β€˜DejaVuSansConde…’, β€˜15’, β€˜15’, β€˜16’, β€˜16’, β€˜9’, β€˜9’)\n#1 /var/www/html/SuiteCRM/include/MVC/Controller/SugarController.php(1020): require_once(’/var/www/html/S…’)\n#2 /var/www/html/SuiteCRM/include/MVC/Controller/SugarController.php(468): SugarController->handleEntryPoint()\n#3 /var/www/html/SuiteCRM/include/MVC/Controller/SugarController.php(373): SugarController->process()\n#4 /var/www/html/SuiteCRM/include/MVC/SugarApplication.php(113): SugarController->execute()\n#5 /var/www/html/SuiteCRM/index.php(52): SugarApplication->execute()\n#6 {main}\n thrown in /var/www/html/SuiteCRM/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php on line 1234, referer: https://crm.gbsmarketing.co.uk/index.php?action=ajaxui

Any help would be gratefully received as I have now spent a whole day trying to find a solution to no avail.

I am using Version 7.11.8 Sugar Version 6.5.25 (Build 344)

This is one of the index errors I am getting

[Wed Oct 23 19:27:52.854939 2019] [php7:notice] [pid 9375] [client 213.152.32.223:56476] PHP Notice: Undefined index: currencies_conversion_rate in /var/www/html/SuiteCRM/modules/AOS_PDF_Templates/templateParser.php on line 162, referer: https://crm.gbsmarketing.co.uk/index.php?action=ajaxui

Solved it myself - I hadn’t installed php-mbstring