Image is not shown in PDF file using dompdf

Rakesh Shetty picture Rakesh Shetty · Jun 1, 2013 · Viewed 27.5k times · Source

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

Rameshkrishnan S picture Rameshkrishnan S · Jun 1, 2013

use full directory path with .jpg image