Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 86712 invoked from network); 24 Jul 2010 22:33:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Jul 2010 22:33:28 -0000 Received: (qmail 28553 invoked by uid 500); 24 Jul 2010 22:33:26 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 28504 invoked by uid 500); 24 Jul 2010 22:33:25 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 28496 invoked by uid 99); 24 Jul 2010 22:33:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jul 2010 22:33:25 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of miguelrvs@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qy0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jul 2010 22:33:21 +0000 Received: by qyk34 with SMTP id 34so1444799qyk.14 for ; Sat, 24 Jul 2010 15:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=kCxAOybICqScIoAODyr6qJgbKXOzx1220F0mnLVpeLc=; b=iStedOvKloLP6eXUDMZcJymSIZUoOCCqECjElwKuCISQ/05Zh3+7wP7+HE4Q8dHveX Kp9k2WXOFNAE/9HJlS9SVlmxJpQzVYpXp7FakLovLiSNROvntdu3bdI1vw8iryjRRFQW N9/WpJpZ5dn/JKSzqS6MXn66nx+vAKzh8X2cM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=jpX/AkDKeZf5zAdBvyz4pkjOsByfylFHEZIyGhuaxeRaReGzUfw7++DMEp77hkB4tr xdBfEAJeR5JuUXkAylmIV+VLd4eqPnxySsoCu1J/mp9hcVzOM6jvubNqbwsCeOhHlSkH anv4PFgL4fp3LqaF6/u2T7wVZo+20TRq0yXe0= MIME-Version: 1.0 Received: by 10.224.28.213 with SMTP id n21mr4471025qac.53.1280010778480; Sat, 24 Jul 2010 15:32:58 -0700 (PDT) Received: by 10.229.34.19 with HTTP; Sat, 24 Jul 2010 15:32:58 -0700 (PDT) In-Reply-To: References: Date: Sat, 24 Jul 2010 17:32:58 -0500 Message-ID: Subject: Re: Struts2 - Html to PDF From: Miguel To: Struts Users Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable FOP is good, but it transforms from XML-FO to PDF (and lots of other target formats). If you want to tranform html to pdf you need a 3 stage process: first you write XHTML with CSS using what ever you have/know/like. Then you transform it to XML-FO using CSS2XSLFO (www.re.be/css2xslfo/index.xhtml) Then you transform this to PDF using FOP (or others front-ends) Please be warned that this combination is very flexible but has very odd limitations. For reporting uses, you may want also to look jasper reports and BIRT that also exports to PDF. Si quieres ser m=E1s positivo, pierde un electr=F3n Miguel Ruiz Velasco Sobrino On Sat, Jul 24, 2010 at 09:08, Martin Gainty wrote: > > i dont know how Crystal can ingest either XSD schema entities or POJOs..m= aybe someone out there knows of a converter? > > > FOP transform is the best solution offered > > http://xmlgraphics.apache.org/fop/ > > > > Good Call! > Martin > ______________________________________________ > Verzicht und Vertraulichkeitanmerkung > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfae= nger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiter= leitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient l= ediglich dem Austausch von Informationen und entfaltet keine rechtliche Bin= dungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen w= ir keine Haftung fuer den Inhalt uebernehmen. > > > >> Date: Fri, 23 Jul 2010 17:33:23 -0400 >> Subject: Re: Struts2 - Html to PDF >> From: wesw@wantii.com >> To: user@struts.apache.org >> >> I'd assume it's possible, but probably not the best choice... I would >> take a look at doing either a Jasper report or using Apache FOP. The >> choice will have to do with the nature of the PDF you are trying to >> generate. Jasper is a reporting platform... Think of Crystal Reports, >> there is a report designer, you then back the report with data and >> render. Jasper uses iText to generate PDFs, and it will let you create >> more of a "document" than a bunch of code. >> >> If your output will be hard to model in a traditional reporting >> platform, then take a look at Apache FOP. It's very complicated, but >> think of it this way - >> >> You start with XML modelling your data, then pass it through a >> transform that kicks out XSL-FO, then you have Apache FOP turn it into >> a PDF. I don't have any real experience with it, so I might be giving >> you bad information (and hope someone will correct me). But, in this >> scenario, you are generating XML which represents the data you are >> passing to the output. The transform is done using XSLT? Which is >> another standard. What you generate is an XSL-FO document. This >> document can be rendered as a PDF by FOP. Although it's a more >> complicated process than the first choice, it does add some >> flexibility since you can drop-in replace different components (the >> transformer, the FO-to-PDF converter, probably), plus, you can create >> other XSLTs that generate other output. With Jasper, you'll probably >> be locked into PDF, HTML and Excel (CSV). >> >> -Wes >> >> On Fri, Jul 23, 2010 at 4:43 PM, CRANFORD, CHRIS >> wrote: >> > Is it possible to extend the default ServletDispatcherResult to parse >> > the HTML output and pass the result content to the browser as a PDF >> > document? =A0Or is there a better approach to doing this? =A0What I wa= nt to >> > be able to do is to allow easy creation of PDF documents from HTML >> > content. =A0Presently I am looking to use iText but this isn't a firm >> > choice and another option that may work better is possible. >> > >> > Chris >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> > For additional commands, e-mail: user-help@struts.apache.org >> > >> > >> >> >> >> -- >> Wes Wannemacher >> >> Head Engineer, WanTii, Inc. >> Need Training? Struts, Spring, Maven, Tomcat... >> Ask me for a quote! >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> > > _________________________________________________________________ > The New Busy is not the too busy. Combine all your e-mail accounts with H= otmail. > http://www.windowslive.com/campaign/thenewbusy?tile=3Dmultiaccount&ocid= =3DPID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org