Re: Tapestry and PDF

Simon Robins <[email protected]> Wed, 29 Jan 2003 09:10:36 +0000
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <[email protected]>
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
> _______________________________________________
> Tapestry-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
>



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com