Through cfdocument I am generating a pdf file and sending the same to the user. But the images are not appearing on that pdf document.
I am not sure what type path i should use absolute/relative and what should be the value of localurl attribute?
We have had issues in the past with images not showing up in PDFs generated using CFDOCUMENT. Our issue was that our HTTP server required the use of an IP address for internal ColdFusion requests.
Although we could view the image in the browser using either URL, CFDOCUMENT couldn't access the images using the domain name. This might be your issue.
// works in browser ~ does not work in cfdocument
http: //mydomain.com/myimage.gif
// works in browser ~ works in cfdocument
http: //123.456.789.0/myimage.gif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With