Closed (fixed)
Project:
Invoice
Version:
7.x-1.0-beta2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
15 Nov 2010 at 11:54 UTC
Updated:
17 Nov 2011 at 11:44 UTC
when i open my invoice my invoice in pdf it doesnt show any image...while it shows the image in print...Please let me know how to fix it..
Comments
Comment #1
pathaksumit commentedComment #2
pietervogelaar commentedIn the template is the variable $path_to_template available. Use this to get an full URL to your image.
Pieter
Comment #3
hanskuiters commentedRe-open this issue for I can't get it to work in 7 version. I placed the image in the template directory. I can browse the image. It shows in browser and print. But it doesn't show in pdf. I cleared cache in database and browser.
Path to the image:
What can I do more to get it work?
Comment #4
hanskuiters commentedI found out I had to place more in the script section in the template. But still no image, just a red cross in the pdf. After searching on the web I found that people using just e dompdf without drupal, needed to use the path to the image, not the url. So I tried that but still no luck. And no errors in the log.
Comment #5
hanskuiters commentedSuddenly I see the logo at the bottom of the pdf. Finally it does something. I can finetune now. But still the red cross at the top, just there where it is in the html. So I might need to unset something here?
Comment #6
hanskuiters commentedSo, putting it in one post.
For the html you need the url to the image.
For the pdf you need the path to the image. And this image covers the red corss in the pdf.
So I changed my template.inc file.
And in the $footer variable
I hope it helps someone. Took me a few hours to figure it out.
Comment #7
pietervogelaar commentedAn example is added in the default invoice template in the stable release.
Pieter
Comment #8
nicholaspkelly commentedSeems to work as normal if gif images are used.