<% OutputStream output=response.getOutputStream(); response.setContentType(\"application/pdf\"); response.setHeader(\"Content-Disposition\", \"inline; filename=detail
I know it's a bit late to this answer, but in my case just upgraded iTextSharp to v. 5.5 from 5.0 and started to work correctly.