title: error reading pdf file generated using dompdf
body: <p>I'm trying to generate a table from html to pdf using dompdf, but I'm getting a file corrupted error when I open it on foxit reader or adobe reader, Sumatra can open the file that dompdf generates without problems</p>
  
  <pre><code> &lt;table border="1"&gt;
              &lt;tr&gt;
                  &lt;th&gt;Name&lt;/th&gt;
                  &lt;th&gt;Course&lt;/th&gt;
              &lt;/tr&gt;
              &lt;?php   
              foreach($select as $s){     
              ?&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;?php echo $s-&gt;strName; ?&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;?php echo $s-&gt;strCourse; ?&gt;&lt;/td&gt;
              &lt;/tr&gt;       
              &lt;?php } ?&gt;
  
   &lt;/table&gt;
  </code></pre>
  
  <p>Here's the file which generates the pdf. The output of the code above is just stored into the session, and this file just extract its contents:</p>
  
  <pre><code>require_once('../classes/dompdf/dompdf_config.inc.php');
  $dompdf = new DOMPDF();
  
  
  $data = $_SESSION['view'];
  
  ob_start();
  ?&gt;
  
  &lt;!--css--&gt;
  
  
  &lt;?php
  $subj = $_SESSION['view']['bi'];
  
  echo $subj.'&lt;hr/&gt;';
  
  foreach($data as $d){
  
  
          echo $d.'&lt;br/&gt;';
  
  }
  
  $print = ob_get_contents(); 
  ob_end_flush();
  
  $tym = date('g:i s');
  $filename = 'print '.$subj. $tym;
  $dompdf-&gt;load_html($print);
  
      $dompdf-&gt;render();
      $dompdf-&gt;stream($filename. ".pdf", array("Attachment" =&gt; 0));
  </code></pre>
  
  <p>How do I determine the error for this one. </p>