title: Getting blank pages in laravel while using dom-pdf
body: <p>I am using laravel 4.2 with dompdf.
  My controller:</p>
  
  <pre><code>public function getLedgerReport() {
      $pdf = PDF::loadView('sales.ledger_report')-&gt;setPaper('a4');
      $pdf-&gt;stream();
  }
  </code></pre>
  
  <p>My view:</p>
  
  <pre><code>&lt;?php
   ini_set('max_execution_time', 300); //300 seconds = 5 minutes
   $html = '';
   $html .= '&lt;html&gt;&lt;body&gt;hi&lt;/body&gt;&lt;/html&gt;';
   echo $html;
  ?&gt;
  </code></pre>
  
  <p>The code which gives a 'hi' in the Pdf file.</p>
  
  <pre><code>public function getLedgerReport() {
      $pdf = PDF::loadView('sales.ledger_report')-&gt;setPaper('a4');
      $pdf-&gt;stream();
      $invoice_path = 'downloads/invoices/invoice.pdf';
      $pdf-&gt;save($invoice_path);
  }
  </code></pre>
  
  <p>I get a blank page instead of getting a 'hi' text.
  But when I save the same as a pdf file I do see a 'hi' in the file.</p>