• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Yaddif Medina
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 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.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic