Re: PDF to acrobat

2010-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thad, On 6/29/2010 4:05 PM, Thad Humphries wrote: > "application/octet-stream" is one way, but it's by no means bullet-proof. > If the file name has an extension, some version of IE will blow off the MIME > type and do what they damn well please based

Re: PDF to acrobat

2010-06-29 Thread Dola Woolfe
There we go. Thank you! - Original Message From: David Fisher To: Tomcat Users List Sent: Tue, June 29, 2010 3:41:18 PM Subject: Re: PDF to acrobat You will want to do this: response.setContentType("application/pdf"); response.setHeader("Cont

Re: PDF to acrobat

2010-06-29 Thread Thad Humphries
Comment inline below. On Tue, Jun 29, 2010 at 3:23 PM, Zachary Valentiner wrote: > Hi Dola, > > Setting the content type to "application/octet-stream" will force a > download. If I recall my headers correclty, setting "application/pdf" is as > close as you can get to telling it to open in the bro

RE: PDF to acrobat

2010-06-29 Thread Martin Gainty
à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: zvalenti...@gmail.com > Subject: Re: PDF to acrobat > Date: Tue, 29 Jun 2010 21:23:42 +0200 > To: users@tomcat.apache.org > > Hi Dola, > > Setting the content type to "

Re: PDF to acrobat

2010-06-29 Thread David Fisher
You will want to do this: response.setContentType("application/pdf"); response.setHeader("Content-disposition", "inline"); For an attachment / download you will want to do: response.setContentType("application/pdf"); response.setHeader("Content-disposi

Re: PDF to acrobat

2010-06-29 Thread Zachary Valentiner
Hi Dola, Setting the content type to "application/octet-stream" will force a download. If I recall my headers correclty, setting "application/pdf" is as close as you can get to telling it to open in the browser without embedding it in an HTML file directly and thereby forcing the browser to use

Re: PDF to acrobat

2010-06-29 Thread Hassan Schroeder
On Tue, Jun 29, 2010 at 12:16 PM, Dola Woolfe wrote: > For example, when I click on PDF links, sometimes it opens the file in the > browser window and at other times it downloads the file. > > What's the possible difference in the (common default) settings? Content-Disposition:

Re: PDF to acrobat

2010-06-29 Thread Dola Woolfe
ginal Message From: Thad Humphries To: Tomcat Users List Sent: Tue, June 29, 2010 3:14:03 PM Subject: Re: PDF to acrobat What happens on the browser end is entirely up to the user. It's subject to the browser they are using, whatever browser plug-ins they've installed, and how they&#x

Re: PDF to acrobat

2010-06-29 Thread Thad Humphries
What happens on the browser end is entirely up to the user. It's subject to the browser they are using, whatever browser plug-ins they've installed, and how they've set those plug-ins. On Tue, Jun 29, 2010 at 3:08 PM, Dola Woolfe wrote: > Hi, > > I set > > response.setContentType("application/p

PDF to acrobat

2010-06-29 Thread Dola Woolfe
Hi, I set response.setContentType("application/pdf"); as a result, the served up content triggers a "Download" rather than opening acrobat within browser window. Do I get to control what happens at client end? I want acrobat to open within browser. How do I achieve that? Thanks, Dola