My Java based webapp has a servlet which streams PDF content back to the browser based on request parameter.
e.g. user clicks on an A tag with an href of \"myApp/Fet
I have tried a solution in java and it worked. You can set given headers in other languages
response.setHeader("Content-Disposition","inline; filename=\"MyFile.pdf\""); response.setContentType("application/pdf; name=\"MyFile.pdf\""); response.getOutputStream().write(pdfAsBytesArray);