Rakesh Shetty Rakesh Shetty - 13 days ago 5
HTML Question

Image is not shown in PDF file using dompdf

I am using DOMPDF to convert the html into PDF and after converting I'm sending that PDF file to user mail id.

Everything is working perfectly but in PDF file I am not able to see the image of logo of my site. I also searched in stackoverflow for previous question such as :- error in pdf image using dompdf ,
dompdf and img tag, image wont show

I also set

DOMPDF_ENABLE_REMOTE
to
TRUE
and
DOMPDF_PDF_BACKEND
to
CPDF


my image tag is :-

<img src="http://www.example.com/clients/myprojects/images/logo.png" alt="" /></a>


I'm giving full path of my website but still it does not show image in my PDF file.

Thanks in advance.

Answer

use full directory path with .jpg image