tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: JSP to PDF
Date Fri, 09 Nov 2001 00:59:11 GMT


On Thu, 8 Nov 2001, David Rault wrote:

> Date: Thu, 8 Nov 2001 19:13:19 +0100
> From: David Rault <tomcat.drault@free.fr>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: Re: JSP to PDF
>
> you can't make a pdf output from a jsp
> the reason is quite simple
>
> pdf is a binary format and JSPs can only generate text-based output
>
> wanna make pdf, write a servlet
> there must be an open source (maybe only LGPL) library to make pdfs
> somewhere, the name is lowagie something
>

Another option would be to use a Filter (new in Servlet 2.3).  If you had
an HTML->PDF class library available, you could pretty easily do this --
either replacing the original "text/html" output, or writing a PDF copy to
a side file and still returning the HTML to the browser.

> hope this helps
>
> David

Craig McClanahan


> ----- Original Message -----
> From: "Huaxin" <hxzhang@cs.ualberta.ca>
> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> Sent: Thursday, November 08, 2001 7:02 PM
> Subject: JSP to PDF
>
>
> > I am trying to use Strut, however, I am wondering if there
> > is a way to convert the OUTPUT of the JSP page to a
> > PDF format, so that the client side sees the PDF instead
> > of the translated HTML page?
> >
> > thanx a lot
> >
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message