Forums Register Login

Open pdf file

+Pie Number of slices to send: Send
After clicking the link on the file name on jsp, the control goes back to servlet, the servlet authenticated the user and its role, then opens the pdf file. Can anybody help me, how to open the pdf file in adobe reader and after closing the adobe reader the control goes back to the jsp where link was clicked. Thanks David.
+Pie Number of slices to send: Send
The web app can't control which application is used to open the file on the client. It just provides the MIME type, and then the user gets to choose the application. For PDFs, most often that will be Acrobat, but it could also be something like Preview (on OS X). If the file has features only Acrobat supports (like filling in forms), you should mention that next to the download link.

You can't control what happens after the viewing app is closed. The user may have switched to other applications in the mean time anyway, and will get back to the web app when it's convenient to her. What is the purpose of wanting to control this?
+Pie Number of slices to send: Send
Open the link in a new window.
+Pie Number of slices to send: Send
It was decided that to open the pdf in new window and no control constriants. Thanks for the inputs. David
This is my favorite tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2163 times.
Similar Threads
PDF and HTML
Error in opening pdf through jsp
Problem in Downloading PDF File using JSP
Jasper pdf in a new window and checkbox option in the pdf
PDF file and JSP
window.focus() or Adobe plug-in?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:25:47.