salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.53k stars 2.09k forks source link

Product Image does not display when using PDF templates. #8105

Open jack7anderson7 opened 5 years ago

jack7anderson7 commented 5 years ago

After creating a PDF Template and adding the Product image as a variable, when printing as a PDF on the Quote record it does not display the image. I have tried both .png and .jpg image types and the error still occurs.

Issue

Screenshot from 2019-10-21 10-48-04 Shown above is the PDF Template I created.

Screenshot from 2019-10-21 10-48-33 This is showing the product has an image attached

Quote_Test_Quote.pdf Above is the result of 'Print as PDF'

Expected Behavior

Image should display correctly

Actual Behavior

Image does not display correctly

Possible Fix

Steps to Reproduce

  1. Create a Product and add an image
  2. Create a PDF template and include the variable for the product image
  3. Create a Quote and relate the Product 4.Print Quote as PDF

Your Environment

Mac-Rae commented 5 years ago

Hi @jack7anderson7,

This issue has been confirmed to exist and is replicable in the latest 7.10.x version.

Thanks :+1:

maladrill commented 5 years ago

It affects all images in pdf Quotes. I replicated it in https://demo.suiteondemand.com. SuiteCRM Logo in Quote template (https://demo.suiteondemand.com/themes/default/images/company_logo.png) is not inserted into layout. I checked in my v 7.11.8 - code added in commit d1279ca is missing in modules/AOS_PDF_Templates/PDF_Lib/mpdf.php Adding it does not fix the issue.

Mephisztoe commented 4 years ago

It affects all images in pdf Quotes. I replicated it in https://demo.suiteondemand.com. SuiteCRM Logo in Quote template (https://demo.suiteondemand.com/themes/default/images/company_logo.png) is not inserted into layout. I checked in my v 7.11.8 - code added in commit d1279ca is missing in modules/AOS_PDF_Templates/PDF_Lib/mpdf.php Adding it does not fix the issue.

May I ask why you added it then? ;-)

However, this problem still exists in 7.11.15.

I wanted to use this for adding signatures to the users' records and reference them within invoice templates...

moyoussry commented 3 years ago

Still exist

Version 7.11.20 Sugar Version 6.5.25 (Build 344)