PDF Template - Generated PDF does not show images

Hi,

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?

Regards
Keith

Sorted.

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.

How to install GD lib?

It depends how your running suitecrm, i’m running an ubuntu server, so installed GD from the cli with

sudo apt-get install php-gd