title: how to convert multiple html files with Dompdf?
body: <h3>What I am Doing:</h3>
  
  <p>I am using a PHP library called <a href="https://github.com/dompdf/dompdf" rel="nofollow"><code>Dompdf</code></a> to convert my HTML file into PDF.
  I have successful converted a single HTML file to PDF.</p>
  
  <h3>What I am trying to do:</h3>
  
  <p>Now I have multiple reports I want to convert them into PDF file.</p>
  
  <h3>What I am doing:</h3>
  
  <p>I have a example here in which I'm a getting a form from database and another one by direct from view.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>$result['patients'] = $this-&gt;reports_model-&gt;get_xray_reports($id); // getting form from database
  
  require_once "dompdf/dompdf_config.inc.php"; // include dompdf
  $dompdf = new DOMPDF();
  $dompdf-&gt;set_paper("A4");
  $html = $this-&gt;load-&gt;view('wilcare/form_set_page_15',"",true);// loading direct from view
  //this file is not converting
  $html = $this-&gt;load-&gt;view('wilcare/report1',$result,true);//loading from db
  
  $dompdf-&gt;load_html($html)
  
  $dompdf-&gt;render();
  $dompdf-&gt;stream("hello.pdf",array('Attachment'=&gt;0));
  </code></pre>
  
  <h3>Problem</h3>
  
  <p>It is only converting one file.  </p>
  
  <p><strong>I have also tried this:</strong></p>
  
  <pre><code>  $html = $this-&gt;load-&gt;view('wilcare/form_set_page_15',"",true);
    $html1 = $this-&gt;load-&gt;view('wilcare/report1',$result,true);
  
    $dompdf-&gt;load_html($html &amp;&amp; $html1);
  </code></pre>