Hi, I'm having some troubles on displaying images on a PDF.
This error is quite weird, since it only happens on my live site, on localhost (windows) everything is fine.
I have an html code that I use as template, then I write the PDF using the writeHTML syntax.
This is the PHP code:
I've tried with url (relative and absolute) and with path (relative and absolute) but it doesn't work.
The weird thing is that if I use an old version of TCPDF (5.9.059) everything works fine!
Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I'm having some troubles on displaying images on a PDF.
This error is quite weird, since it only happens on my live site, on localhost (windows) everything is fine.
I have an html code that I use as template, then I write the PDF using the writeHTML syntax.
This is the PHP code:
And this is a part of the HTML code:
I've tried with url (relative and absolute) and with path (relative and absolute) but it doesn't work.
The weird thing is that if I use an old version of TCPDF (5.9.059) everything works fine!
Any ideas?
Please check the paths on the configuration file and manually set them if necessary.
thanks for the reply, the image path where should point to? to the image folder under tcpdf or somehere else?
changing the image from .png to .jpg fixes the issues