PDF Template - Generated PDF does not show images


The detail view of a standard PDF template shows the suitecrm ‘company_logo.png’ correctly.

However the generated PDF only shows a red X for the image. I’ve tried updating the path etc but can’t figure out why the image isn’t showing?

I can’t see any errors in the log file. The only error in apache log is : PHP Strict Standards: Non-static method SugarConfig::getInstance() should not be called statically in /var/www/crm/include/utils/sugar_file_utils.php on line 369

Could this be related problem?



I enabled $mpdf->showImageErrors = true in modules/AOS_PDF_Templates/PDF_Lib/config.php which then showed an error that GD lib was not installed.

after installing GD Library the image shows up correctly in the PDF.