title: IHttpHandler Response.ContentType = "application/pdf" broken in IE8
body: <p>This works in Chrome and Firefox, but IE8 displays nothing...
  When I tried the same code in a webforms button click it works on all three browsers.</p>
  
  <p>How can I get this to work in IE8?</p>
  
  <pre><code>public class ShowPDF : IHttpHandler
  {
  
     public void ProcessRequest(HttpContext context)
     {
         // create PDF document
         var document = new PdfDocument();
         var page = document.AddPage();
         var font = new XFont("Verdana", 20, XFontStyle.Bold);
         var gfx = XGraphics.FromPdfPage(page);
         gfx.DrawString("Hello, World!", font
             , PdfSharp.Drawing.XBrushes.Black
             , new PdfSharp.Drawing.XRect(0, 0, page.Width, page.Height)
             , PdfSharp.Drawing.XStringFormats.Center
         );
  
         // Send PDF to browser
         var stream = new System.IO.MemoryStream();
         document.Save(stream, false);
         context.Response.Clear();
         context.Response.ContentType = "application/pdf";
         context.Response.AddHeader("content-length", stream.Length.ToString());
         context.Response.BinaryWrite(stream.ToArray());
         context.Response.Flush();
         stream.Close();
         context.Response.End();
     }
  
     public bool IsReusable
     {
         get
         {
             return false;
         }
     }
  }
  </code></pre>