title: iTextSharp generate PDF and show it on the browser directly
body: <p>How to open the PDF file after created using iTextSharp on ASP.Net? I don't want to save it on the server, but directly <strong>when the new PDF is generated, it shows on the browser</strong>. Is it possible to do that?</p>
  
  <p>Here is the example for what I mean: <a href="http://examples.extjs.eu/?ex=download" rel="nofollow">Click here</a> . But on this example, the file directly downloaded. </p>
  
  <p>How can I do that?</p>
  
  <pre><code>    Dim doc1 = New Document()
  
      'use a variable to let my code fit across the page...
      Dim path As String = Server.MapPath("PDFs")
      PdfWriter.GetInstance(doc1, New FileStream(path &amp; "/Doc1.pdf", FileMode.Create))
  
      doc1.Open()
      doc1.Add(New Paragraph("My first PDF"))
      doc1.Close()
  </code></pre>
  
  <p>The code above do save the PDF to the server.</p>
  
  <p>Thank you very much in advance! :)</p>