Antwort: Antwort: RE: byte serving PDFs

2002-12-16 Thread Dietmar . Mueller

Sorry for my stupid englisch.

Yes it is possible to send(create) pdf via tomcat.

-- set the mime/type
-- setContentLength

Dietmar





[EMAIL PROTECTED] am 16.12.2002 14:18:22

Bitte antworten an Tomcat Users List [EMAIL PROTECTED]

An:Tomcat Users List [EMAIL PROTECTED]
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 [EMAIL PROTECTED] am 16.12.2002 14:05:45

Bitte antworten an Tomcat Users List [EMAIL PROTECTED]

An:'Tomcat Users List' [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
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:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]








--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]








--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Antwort: Antwort: RE: byte serving PDFs

2002-12-16 Thread Cox, Charlie
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: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 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
 
 
 
 
 
 [EMAIL PROTECTED] am 16.12.2002 14:18:22
 
 Bitte antworten an Tomcat Users List 
 [EMAIL PROTECTED]
 
 An:Tomcat Users List [EMAIL PROTECTED]
 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 [EMAIL PROTECTED] am 16.12.2002 14:05:45
 
 Bitte antworten an Tomcat Users List 
 [EMAIL PROTECTED]
 
 An:'Tomcat Users List' [EMAIL PROTECTED]
 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:[EMAIL PROTECTED]]
 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:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]