You are resurrecting a thread over a yr old.JBanta said:You are trying to use iTextSharp in a web application so you can use ASP.NET's response stream directly to write the PDF. Your code would look something like:Filth said:*snip*
this.Response.ContentType = "application/pdf";
Document doc = new Document();
PdfWriter writer = PdfWriter.GetInstance( doc, this.Response.OutputStream );
try
{
doc.Open();
doc.Add( new Paragraph( DateTime.Now.ToString() ) );
doc.Add( new Paragraph( "This is a test" ) );
}
finally
{
doc.Close();
writer.Close();
}
Chances are the problem has been solved by now...