File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Opening a PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Opening a PDF" Watch "Opening a PDF" New topic

Opening a PDF

Pho Nghi

Joined: Jul 28, 2011
Posts: 4
I currently can open a pdf file using JSF 1.2 but I cannot figure out how to send in the adobe open parameters. I tried to append the open parameters #search=blah to the end of the File but am having no luck. Any ideas or can anyone point me in the right direction? I followed this example

File file = new File("C:\\blah.pdf");
response.setHeader("Content-disposition", "inline; filename=\"" + file.getName() + "\"");
BufferedInputStream input = null;
BufferedOutputStream output = null;

Appreciate any comments! Thanks!
I agree. Here's the link:
subject: Opening a PDF
It's not a secret anymore!