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
Author

Opening a PDF

Pho Nghi
Greenhorn

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.setContentType("application/pdf");
response.setContentLength(file.length());
response.setHeader("Content-disposition", "inline; filename=\"" + file.getName() + "\"");
BufferedInputStream input = null;
BufferedOutputStream output = null;



Appreciate any comments! Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Opening a PDF