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.