Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
Video Player
showing pdf in Fire fox giving problem
A problem with servlet file transfer
What's the best way to download files from a web app?
going to a particular page in a pdf