This is a draft version of ADF sample application for opening PDF file in New Window or Inline Frame.
You can download the code from here / here
Birds eye view of the app:
To Show the contents of the file, we are registering a servlet(ShowPdfServlet) in web.xml which takes care of reading and displaying .
On the same lines, we can tweak the code to read from data base or any other place.
Application assumes, the existence of file "c:\\webcenter.pdf". Hence before you run the application make sure you place a pdf with above name. (PdfServlet.java : 44 hard coded value says the same)
To open the file in new window, I have followed ADF Code Corner Example (33).
The task flow enabled for url-invoke allowed and it should be bounded taskflow "with pages". More info @ ADF Code Corner Example.
Sample output when opens in popup.
Soon will come out with detailed post.
Thanks.

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
ReplyDeleteAlena
Diverticulitis Treatment Diverticulitis Diet
Even, i have followed the code corner stuff, i am facing issue in CHROME browser, is there a solution for that.
ReplyDeleteIam facing issue as the servelet getting called multiple times, hence the window is shrinking....
When can we expect your detailed post ?
ReplyDelete--Sai Yeluri.