I have a page where HTML is created on the go. External Images are added to page using <IMG> tag.I pass the generated html to tcpdf. It generates the pdf but the images are missing. Any help will be appreciated.
Regards,
Ankit Jain
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all: Please be aware that TCPDF is not meant to be a full-blown HTML to PDF converter - only a subset of HTML and CSS is supported.
However img-Tags are supposed to work.
It generates the pdf but the images are missing.
So it does not throw any error message at all? If that's the case, I suspect you either have syntactic errors in your HTML (you can check this with e.g. http://validator.w3.org) or some of your HTML isn't supported in TCPDF, which somehow leads to the images not being shown.
If that doesn't help, please provide an example of your HTML and TCPDF code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have smae problem for TCPDF. It showing images on my localhost but when I put that pdf functionality online it not showing error as well as not showing image on pdf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a page where HTML is created on the go. External Images are added to page using <IMG> tag.I pass the generated html to tcpdf. It generates the pdf but the images are missing. Any help will be appreciated.
Regards,
Ankit Jain
First of all: Please be aware that TCPDF is not meant to be a full-blown HTML to PDF converter - only a subset of HTML and CSS is supported.
However img-Tags are supposed to work.
So it does not throw any error message at all? If that's the case, I suspect you either have syntactic errors in your HTML (you can check this with e.g. http://validator.w3.org) or some of your HTML isn't supported in TCPDF, which somehow leads to the images not being shown.
If that doesn't help, please provide an example of your HTML and TCPDF code.
I have smae problem for TCPDF. It showing images on my localhost but when I put that pdf functionality online it not showing error as well as not showing image on pdf