aspose file tools*
The moose likes Servlets and the fly likes How can I close Acrobat Reader when a servlet show a pdf file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How can I close Acrobat Reader when a servlet show a pdf file?" Watch "How can I close Acrobat Reader when a servlet show a pdf file?" New topic
Author

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

Yaddif Medina
Greenhorn

Joined: Oct 05, 2005
Posts: 23
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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Yaddif Medina
Greenhorn

Joined: Oct 05, 2005
Posts: 23
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I close Acrobat Reader when a servlet show a pdf file?