Re: Tapestry and PDF
Andrus <[email protected]> Wed, 29 Jan 2003 23:11:19 -0500
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <[email protected]> |
Yes, this is a good idea, thanks. I guess I am still thinking mostly in WebObjects terms, so I overlooked this quiet obvious solution. This produced much cleaner code!! Andrus At 09:10 AM 1/29/2003 +0000, Simon Robins wrote: >Would a service be better for this sort of thing? > >I have a application which requires an invoice to be displayed, using a >service I use iText to return a PDF document or a HTML document. > >Simon > >On Wednesday, January 29, 2003, at 04:15 am, Andrus wrote: > >>At 09:26 PM 1/28/2003 -0500, Andrus wrote: >>>I was wondering if anyone used Tapestry with PDF generation frameworks? >>>SourceForge mailing lists are really "searchable", so I can't tell if >>>this was discussed in the past. >>> >>>Anyway, just checking what potential problems I might have. >>> >>>PDF generation is a part of a bigger Cayenne/Tapestry application. We >>>are using iText as PDF generation framework. It seems to be more solid >>>than things like FOP. >>> >>>Tapestry PDF pages override "beginResponse" to set the right HTTP >>>headers and push the PDF content directly to HttpServletResponse. >>>Unfortunately this brings Tapestry down to simple servlet API. And using >>>iText XML options (with XML generated by Tapestry, and then fed to PDF >>>generator) seem like big performance overhead. Anyone has any experience >>>with such setup? >> >> >>I figured I'd still try the XML thing... As expected, only the XML -> PDF >>part now takes twice as much time as before (without XML), and I haven't >>included the actual XML rendering in the timing. Also it has to be >>double-buffered now (one bugger for XML, another for PDF to set >>"Content-Length" correctly), so I expect memory issues. >> >>Now I need to make a decision whether the component-based design this >>gives me is worth the trouble. On the positive side, I wrote a cool >>PDFMarkupWriter, working with nested XML writer :-). >> >>Andrus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com