title: cannot open pdf file generated using dompdf
body: <p>i am trying to generate a pdf file from smarty template using dompdf:code is below:-</p>
  
  <pre><code>require_once('dompdf/dompdf_config.inc.php');
  $dompdf = new DOMPDF();
  $dompdf-&gt;load_html($smarty-&gt;fetch(CURRENT_TEMPLATE.'/module/shopping_cart.html'));
  $dompdf-&gt;render();
  $dompdf-&gt;stream("sample.pdf");
  </code></pre>
  
  <p>a pdf file is generated,but when i try to open the pdf file a error message is displaying as below
  "Acrobat cannot open the 'sample.pdf' because it is either not supported file type or because file has been damaged"
  HTML page is diplaying correctly when i try to </p>
  
  <pre><code>echo $smarty-&gt;fetch(CURRENT_TEMPLATE.'/module/shopping_cart.html')
  </code></pre>
  
  <p>so please help me to solve this error...thanks in advance</p>