title: FPDF - generated PDF is not displayed properly in browser
body: <p>I am generating a PDF document with a <strong>FPDF</strong> library.
  I am trying to display a generated document in browser (<em>Firefox, Chrome, Opera</em>) but all i get are strange characters starting with:</p>
  
  <pre><code>%PDF-1.3 3 0 obj &lt;&gt;...
  </code></pre>
  
  <p>This is my code. I am trying to add two images to the document.</p>
  
  <pre><code>$pdf = new FPDF();
  $pdf-&gt;AliasNbPages();
  $pdf-&gt;AddPage();
  $pdf-&gt;Image('./image.png',10,10,0,0,'png');
  $pdf-&gt;Image('./image.png',10,120,0,0,'png');
  $pdf-&gt;Output('file.pdf','I');
  </code></pre>
  
  <p>If I use the output with the 'D' option:</p>
  
  <pre><code>$pdf-&gt;Output('file.pdf','D');
  </code></pre>
  
  <p>and save the file on the disc, the pdf document is fine.</p>