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
You could display the PDF in an iframe.
Something like this:
Here is the amazing PDF
So instead of linking to a pdf document using myApp/FetchPDFServlet?id=123
, you would link to something that returns the above html. For example, a jsp page: myApp/ShowPDF.jsp?id=123&title=Here%20is%20the%20amazing%20PDF