Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jack7anderson7 opened this issue Oct 21, 2019 · 4 comments
Open

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

jack7anderson7 opened this issue Oct 21, 2019 · 4 comments
Labels
Area: Module Issues & PRs related to modules that do not have specific label Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type:Bug Bugs within the core SuiteCRM codebase

Comments

@jack7anderson7
Copy link
Contributor

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

  • SuiteCRM Version used: 7.11.8
  • Operating System and version (e.g Ubuntu 16.04): 18.04
@Mac-Rae
Copy link
Contributor

Mac-Rae commented Oct 21, 2019

Hi @jack7anderson7,

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

Thanks 👍

@Mac-Rae Mac-Rae added Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area: Module Issues & PRs related to modules that do not have specific label Type:Bug Bugs within the core SuiteCRM codebase labels Oct 21, 2019
@maladrill
Copy link

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
Copy link

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
Copy link

Still exist

Version 7.11.20
Sugar Version 6.5.25 (Build 344)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Module Issues & PRs related to modules that do not have specific label Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type:Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

5 participants