aspose file tools
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
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!
It is sorta covered in the JavaRanch Style Guide.
subject: Opening a PDF