title: DOMPDF, able to create pdf doc but the pdf itself failed to load
body: <p>Hi I'm trying to use php to covert html to pdf. The code is able to run and I able to run it and download a pdf file but when I open the pdf file it gives me this error </p>
  
  <p><img src="https://i.stack.imgur.com/UeqjH.png" alt="enter image description here"></p>
  
  <p>This is the code I have to run the php </p>
  
  <pre><code>   &lt;?
  require_once("dompdf/dompdf_config.inc.php");
  
  $html =
    '&lt;html&gt;&lt;body&gt;'.
    '&lt;p&gt;Put your html here, or generate it with your favourite '.
    'templating system.&lt;/p&gt;'.
    '&lt;/body&gt;&lt;/html&gt;';
  
  $dompdf = new DOMPDF();
  $dompdf-&gt;load_html($html);
  $dompdf-&gt;render();
  $dompdf-&gt;stream("sample.pdf");
  
  
  
   ?&gt;
  </code></pre>
  
  <p>I have a feeling that I'm loading the html wrong so the contents of the pdf is actually messing up, any ideas?  </p>