Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open pdf from Explorer

 
Alan Hermin
Ranch Hand
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all..i do'nt know if this is correct post here or at JSP forum
i want to open pdf file in the Explorer,,,i mean when clicking on some button , i want to open the file at Explorer, not to download it then open it from the downloaded pdf..



Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a link to it and make sure that your browser is properly configured.
 
Senthil S Kumar
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the "Content-disposition" property to open the file inline or as an attachment.



Also, make sure you are setting the content type to "application/pdf".



Refer here for more details.
[ August 13, 2006: Message edited by: Senthil S Kumar ]
 
Alan Hermin
Ranch Hand
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx all ...
all thing go fine..

 
Rusty Smythe
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be aware that any commands sent to a browser are only suggestions.

Someone could configure their browser to always download a PDF, and there is nothing you can do about that.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic