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 16:41:18 GMT


On Fri, 9 Nov 2001, Huaxin wrote:

> Date: Fri, 9 Nov 2001 09:07:49 -0700 (Mountain Standard Time)
> From: Huaxin <hxzhang@cs.ualberta.ca>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: Re: JSP to PDF
>
> Yes, I know FOP. but the problem is
>
> 1. I want to reuse the GUI layout in JSP rather than
> writing XPATH for transforming XHTML to XSL:FO pages. that
> is too time consuming.
>
> 2. I am using Strut, the forms are nolonger static XHTML now,
> it is dynamic JSP output. I can't use html2pdf unless I can
> record the dynamic output to a HTML file.
>

See my response from yesterday -- use a Filter and you can capture the
output from *any* servlet or JSP page and convert it.  All you need is a
library that knows how to translate HTML into PDF.

Craig


> On Fri, 9 Nov 2001, Lars Nielsen Lind wrote:
>
> > Is it not possible to create a PDF-file from JSP?
> >
> > I believe I have heard something about FOP - you can get it from the Apache / Jakarta
website.
> >
> > /Lars Nielsen Lind
> >
> >
> > ----- Original Message -----
> > From: "Craig R. McClanahan" <craigmcc@apache.org>
> > To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> > Sent: Friday, November 09, 2001 1:59 AM
> > Subject: Re: JSP to PDF
> >
> >
> > >
> > >
> > > 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>
> > >
> > >
> > >
> >
> >
> > --
> > 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