The disposition-type "attachment" says, that the display should not start automatic but continegent upon some further action of the user.
Try using disposition-type "inline" or dont set this header and use instead of this only the "contentType" header Sample: response.setHeader("Content-disposition", "inline; filename=\"report.pdf\""); or response.setContentType("application/pdf"); Michael