Image not rendering in dompdf

Posted by Venkat on Stack Overflow See other posts from Stack Overflow or by Venkat
Published on 2012-11-29T16:37:22Z Indexed on 2012/11/29 17:04 UTC
Read the original article Hit count: 145

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about php

Related posts about codeigniter