Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How can I close Acrobat Reader when a servlet show a pdf file?

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am sending a pdf file from a servlet(application/pdf) but when the acrobat reader shows, I can close it without close my application window. How can I show a "close" button in the Acrobat or show the pdf in a new window?.

Thanks in advance.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you using for a value in the Content-Disposition tag?

"inline" will open Acrobat as an embedded app within the browser.
"attachment" will open a separate instance of Acrobat.
 
Yaddif Medina
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ben,

I was using the "inline" tag, the problem with the "attachment" tag is that an action's confirmation window appears (save as, open, etc)... My app's users have not a good level and I need to that window does not appear.

I tried with the "target" tag (HTML) but the problem was with the submit() method because it takes the fields from the new window and not from the "main" window.

 
This tiny ad will self destruct in five seconds.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic