Image not rendering in dompdf
- by Venkat
I am using codeIgniter and dompdf for my application for generating pdfs. The below code is the code which i am using to display an image.
<div class=\"block_head\">
<h2>Image display</h2>";
$image_location = "/images/xxx.png";
$html .="<img src=\"".$image_location."\" width=\"200\" height=\"200\" />
</div>";
I tested and debugged all ways whether i am doing something wrong. Like this first i checked whether the path is wrong. This is path on the server. It's correct. I tested by echoing $html also it's showing perfectly path. When i clicked on that path image is displaying. But when i am trying to render it in pdf it's not displaying.
Note: PDF is generating perfectly without image.