title: CSS and Images not displaying while converting HTML to PDF in CodeIgniter
body: <p>I am new to CodeIgniter, trying to convert HTML to PDF. Text is almost same in both <code>html_page_output</code> and <code>pdf_output</code>  but CSS and images are not working in PDF.</p>
  
  <p>My <strong>controller code</strong> is like this:</p>
  
  <pre><code>$html = $this-&gt;load-&gt;view('searching/pdfShow', $data,true);
  $this-&gt;load-&gt;library('dompdf_gen');
  $this-&gt;dompdf-&gt;load_html($html);
  $this-&gt;dompdf-&gt;render();
  $this-&gt;dompdf-&gt;stream("welcome.pdf");
  </code></pre>