tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: Antwort: Antwort: RE: byte serving PDFs
Date Mon, 16 Dec 2002 13:34:16 GMT
it is possible to serve an existing pdf with tomcat by using the steps below
- plus your URL must end in "pdf" for IE to show it properly.(this is an IE
"feature") 

i.e. http://myserver/mydir/my.pdf or http://myserver/mydir/myfile?x=pdf

If you want to create a pdf within tomcat, you need an external library such
as Apache FOP or iText

Charlie

> -----Original Message-----
> From: Dietmar.Mueller@eurotours.at 
> [mailto:Dietmar.Mueller@eurotours.at]
> Sent: Monday, December 16, 2002 8:23 AM
> To: Tomcat Users List
> Subject: Antwort: Antwort: RE: byte serving PDFs
> 
> 
> 
> Sorry for my stupid englisch.
> 
> Yes it is possible to send(create) pdf via tomcat.
> 
> --> set the mime/type
> --> setContentLength
> 
> Dietmar
> 
> 
> 
> 
> 
> Dietmar.Mueller@eurotours.at am 16.12.2002 14:18:22
> 
> Bitte antworten an "Tomcat Users List" 
> <tomcat-user@jakarta.apache.org>
> 
> An:    "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> Kopie:
> Thema: Antwort: RE: byte serving PDFs
> 
> 
> 
> Yes, this is enough. But becouse a bug in InternetExplorer 
> you have to set
> the contentLength.
> 
> You can see some samples under: http://www.lowagie.com/iText/
> 
> There is also an explain from some bugs with PlugIn in
> http://www.lowagie.com/iText/faq.html
> 
> regards Dietmar
> 
> 
> 
> 
> 
> 
> "Wagoner, Mark" <MWagoner@wild-flavors.com> am 16.12.2002 14:05:45
> 
> Bitte antworten an "Tomcat Users List" 
> <tomcat-user@jakarta.apache.org>
> 
> An:    'Tomcat Users List' <tomcat-user@jakarta.apache.org>
> Kopie:
> Thema: RE: byte serving PDFs
> 
> 
> There is really nothing special about serving a PDF document 
> other than
> setting the correct MIME type.  If you are using Tomcat to 
> serve static PDF
> files, just make sure the file extension is .PDF and the 
> browser should
> recognize it properly.  If you are dynamically generating the PDF and
> sending it back as a byte stream, just set the Content Type header to
> "application/pdf" and send the data back through the output 
> stream.  You
> will have to do this with a servlet as a JSP page tries to 
> treat everything
> as text.
> 
> -----Original Message-----
> From: Elizabeth Fisher [mailto:efisher@Primus.com]
> Sent: Friday, December 13, 2002 1:01 PM
> To: Tomcat Users List
> Subject: byte serving PDFs
> 
> 
> Does Tomcat support byte serving of PDFs?
> 
> -Elizabeth
> 
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <
> mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:tomcat-user-help@jakarta.apache.org>
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:tomcat-user-help@jakarta.apache.org>
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message