iTextSharp generate PDF and show it on the browser directly
问题 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 when the new PDF is generated, it shows on the browser . Is it possible to do that? Here is the example for what I mean: Click here . But on this example, the file directly downloaded. How can I do that? 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 &