• Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening a PDF  RSS feed

Pho Nghi
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!