Re: Tapestry and PDF
Andrus <[email protected]> Tue, 28 Jan 2003 23:15:46 -0500
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <[email protected]> |
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