2

I'm using DOMPDF along with Laravel-dompdf and after hours of research I cannot find a solution that will enable my images to render. I've referenced these questions already:

DomPDF: Image not readable or empty

dompdf image not real image not readable or empty

In both package config files I have def("DOMPDF_ENABLE_REMOTE", true); and def("DOMPDF_ENABLE_AUTOLOAD", true);. And of course I have checked the paths, they are all correct. I also tried this solution, which didn't work for me.

Can anyone offer a different solution?

Community
  • 1
  • 1
Ash Reno
  • 41
  • 1
  • 4

1 Answers1

1

I solved this problem by using public path:

<img src="{{ public_path('image.jpg') }}" />

Eugene van der Merwe
  • 4,390
  • 1
  • 35
  • 48
Nasser Hekmati
  • 145
  • 1
  • 5