Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cfdocument of pdf type not showing images?

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?

like image 344
Deepak Kumar Padhy Avatar asked Nov 24 '25 15:11

Deepak Kumar Padhy


1 Answers

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
like image 75
Evik James Avatar answered Nov 27 '25 04:11

Evik James



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!