Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 21729 invoked from network); 5 Jun 2006 20:30:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jun 2006 20:30:31 -0000 Received: (qmail 62975 invoked by uid 500); 5 Jun 2006 20:30:28 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 62818 invoked by uid 500); 5 Jun 2006 20:30:28 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 62803 invoked by uid 99); 5 Jun 2006 20:30:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 13:30:27 -0700 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=SPF_HELO_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.252.142.4] (HELO milhouse.priv.jgsullivan.com) (206.252.142.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 13:30:22 -0700 Received: from [192.168.2.110] (maximus.jgsullivan.com [68.79.151.2]) by milhouse.priv.jgsullivan.com (8.12.11.20060308/8.12.11) with ESMTP id k55KTtbr018367; Mon, 5 Jun 2006 16:29:56 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <58968.170.201.180.137.1149536321.squirrel@webmail.chiron.lunarpages.com> References: <55386.170.201.180.137.1149534775.squirrel@webmail.chiron.lunarpages.com> <44848500.5040909@fdar.com> <58968.170.201.180.137.1149536321.squirrel@webmail.chiron.lunarpages.com> Date: Mon, 5 Jun 2006 15:28:31 -0500 To: "Frank W. Zammetti" , "Struts Developers List" From: Joe Germuska Subject: Re: [SAF2] Tossing an idea around: PDFResult Cc: "Struts Developers List" Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N At 3:38 PM -0400 6/5/06, Frank W. Zammetti wrote: >Not a bad idea... I've never been a big fan of XSLT, always seemed overly >difficult to me for what it was, but certainly sticking with a standard >has appeal, and I've done a little bit of FOP work, so it's not all new. > >One thing I was thinking about for the Ajax result stuff was to have >optionally a toXML() and toJSON() method on the Action... if they are >present, they would be used by the Results rather than the automatic >generation process... would allow for more complex outputs than the >automatic process is capable of.. having toXML() on the Action might be a >good idea in general, precisely for things like PDF generation and the >XSLT Result you mention. Maybe some default implementation (the one from >AjaxXMLResult possibly?) in ActionSupport might open some doors? > >In any case, I may have to play with your suggestion a bit and see what it >might look like... I like the idea of using standards, but I have some >doubts as to how easy it would be for developers to use, generally. It depends a lot upon your use case -- but for starters, this very question suggests that if you do write anything, you should call it ITextResult, or FOPResult, not PDFResult. Writing FO can be kind of tedious, while IText has an API that is pretty well suited to just flowing text in if you have simple needs. I haven't used either exhaustively -- my day job is a LOT about generating PDFs but ours need much finer design control than either of those APIs really support. It seems like design of a generalized (custom) XML format for describing PDF templates for iText is a pretty big chunk of responsibility which doesn't really belong at Struts. It seems like something that should be done in cooperation with the iText team for eventual integration to their project, or if not, to be served independently. Is there any problem with iText's license? (dual LGPL/MPL)? May be worth a look at PDFBox, which is BSD licensed: http://pdfbox.org/ Just a few fragmentary thoughts... Joe -- Joe Germuska Joe@Germuska.com * http://blog.germuska.com "You really can't burn anything out by trying something new, and even if you can burn it out, it can be fixed. Try something new." -- Robert Moog --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org