RE: Why is FO(P) a superior model than what most proprietary tool s propose
Our product (Cetova Financial Analysis Reporting - www.cetova.com) uses FOP (embedded) for PDF generation. Brian -Original Message- From: Xie, David (IPCG-NJ) [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 4:45 PM To: '[EMAIL PROTECTED]' Subject: RE: Why is FO(P) a superior model than what most proprietary tool s propose Are there any companies out there developing products base on FOP? Just curious. -Original Message- From: Patrick Lanphier [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 4:34 PM To: [EMAIL PROTECTED] Subject: Re: Why is FO(P) a superior model than what most proprietary tools propose We are considering using FOP in place of JReports or any other reporting tools. More needs to be written on how to use Cocoon and FOP as a true report writer. Any help would be great. I'm currently working with Corda in hopes that they will change the SVG format to inlining so that it can be easy used with FOP. If any of you would like to talk to them about this that would be great. Patrick Lanphier The Artemis Group http://www.artemisgroup.com phone: 814-235-0444 fax: 800-582-9710 On Tue, 30 Apr 2002, J.Pietschmann wrote: Patrick Andries wrote: Alex McLintock wrote: I don't know about an industry analysts study of XSL:FO but we ought to be able to come up with case studies for people who have successfully used FOP. I think this is crucial. I found nothing of the sort. There was recently an announcement on the cocoon list that a major NASA site (KSC, i believe) is being redesigned using Cocoon 2 (includes FOP) and will going online soon. Perhaps some details regarding FOP usage there could be asked for. Apart from this, for my job I found XSLFO superior to the various proprietary reporting tools (rather expensive stuff). It's just me, though. J.Pietschmann
RE: How to use vertical-align=middle in a table
Did you try display-align? Brian -Original Message- From: David Calles [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 10:12 AM To: [EMAIL PROTECTED] Subject: How to use vertical-align=middle in a table Hi, I have a table and with FOP, I try to make a vertical alignement of the text Although the sintaxis is accepted by FOP, the text is not vertically centerd on the cell. I have tried to put the vertical-align=iddle in the fo:table, in the fo:table-row and in the fo:table-cell and it is always the same. I don't specify the height of the cell, and it is dinamically adjusted because of the length of the text. Is that an inconvenient to center the text ? Thank you a lot.
FOP and SAX
I'm trying to take an XML document, combine it with an XSL stylesheet, and spit it to PDF using SAX events, and I'm having trouble finding an example that works. Here's my code (using Fop 0.20.3): TransformerHandler tHandler = XSLTranslateFactory. getHandler(FopInput.xsl) ; // gets TransformerHandler from this file Driver fopDriver = new Driver() ; fopDriver.setRenderer(Driver.RENDER_PDF) ; fopDriver.setOutputStream(out) ; ContentHandler cHandler = driver.getContentHandler() ; XMLReader reader = XMLReaderFactory.createXMLReader() ; reader.setContentHandler(tHandler) ; reader.setProperty(http://xml.org/sax/properties/lexical-handler;, tHandler) ; tHandler.setResult(new SAXResult(cHandler)) ; reader.parse(source) ; Any ideas? Thanks, Brian
Omitting content length
Ignore the question below - it works (if anyone needs SAX example, this is decent). It looks like what is happening is that I was writing this directly to a servlet's outputstream, so I never set the content length header. This made IE puke, although Lynx caught it ok. I've read through the threads about how IE handles content length header and requests the document twice. Is there any alternative to writing to a byte array to calculate the length before rewriting to the servlet's output stream? I'd like to avoid the memory consequences. Thanks, Brian -Original Message- From: Brian O'Kelley [mailto:[EMAIL PROTECTED] Sent: Monday, April 15, 2002 5:28 PM To: [EMAIL PROTECTED] Subject: FOP and SAX I'm trying to take an XML document, combine it with an XSL stylesheet, and spit it to PDF using SAX events, and I'm having trouble finding an example that works. Here's my code (using Fop 0.20.3): TransformerHandler tHandler = XSLTranslateFactory. getHandler(FopInput.xsl) ; // gets TransformerHandler from this file Driver fopDriver = new Driver() ; fopDriver.setRenderer(Driver.RENDER_PDF) ; fopDriver.setOutputStream(out) ; ContentHandler cHandler = driver.getContentHandler() ; XMLReader reader = XMLReaderFactory.createXMLReader() ; reader.setContentHandler(tHandler) ; reader.setProperty(http://xml.org/sax/properties/lexical-handler;, tHandler) ; tHandler.setResult(new SAXResult(cHandler)) ; reader.parse(source) ; Any ideas? Thanks, Brian
RE: charts and graphs
Sorry. Brian -Original Message- From: Brian O'Kelley [mailto:[EMAIL PROTECTED] Sent: Sunday, April 14, 2002 12:38 AM To: [EMAIL PROTECTED] Subject: RE: charts and graphs I would be very interested in seeing the source code... Thanks, Brian -Original Message- From: Fischer Tibor [mailto:[EMAIL PROTECTED] Sent: Saturday, April 13, 2002 5:22 PM To: [EMAIL PROTECTED] Subject: Re: charts and graphs Hi, i use jFreeChart for this operation. it's a java tool, with open source code. i wrote a java plugin, what generates, and returns an svg with a barchart, or any kind of charts. Then the xsl handles it, and show it in pdf. If you are interested, find me in private mail, and i send you the source. i put a sample in the attachment (it's not too nice, i made it when i start using jFreeChart BR, Fishy Norr, Peter wrote: What is the best to way to include charts and graphs in a pdf file? Can I create simple bar charts using xsl:fo or svg? Peter --- --- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
RE: Re mail-to
Is there any chance that the typo in address is causing you to generate the link mailto:;, which the browser then tries to turn into a valid http: url? Brian -Original Message- From: MARTIN Franck [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: Re mail-to The simple example given earlier works but the following one doesn't. xsl:template match=identity xsl:element name=fo:basic-link xsl:attribute name=external-destination mailto:xsl:value-of select=adress/email/ /xsl:attribute xsl:value-of select=adress/email/ /xsl:element /xsl:template An xslt engine would produce the following output : fo:basic-link external-destination=mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] /fo:basic-link This output is similar to the example that works. I believe this is a bug either in the xslt engine parser either in fop cause it should open the mail client rather than the browser Franck MARTIN
Re: Options
So I can call options once (at application start) and it will affect all transformations thereafter? That's nice, as I think I was calling this every transformation. Brian On Wed, 27 February 2002, Jeremias Maerki wrote: I saw the code pieces on the metioned website but I did not understand ist: Having the driver-object defined in the first box on the site and the option -object from the third box, how can I plug the option to the driver? Well, the documentation might be misleading. You don't have to plug in anything, because new Options... uses static stuff in the background. So, just do new Options somewhere before your call to FOP and it should work. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch
HTTP Redirect, Mime Type, and IE
Title: Message I apologize if this has already been answered.. I've looked around and can't find anything that works. I have a servlet, coming through Tomcat, that spits out PDF using FOP. So far so good. However, it requires the user to login first. If the user isn't logged in, it redirects the user to an HTML page. If I login, go to the page and generate a PDF file, then things are fine. Up pops Acrobat. If I then restart Tomcat to zap the session, and hit refresh, I see the redirect happen on the server side, but IE pops up with an error. Itjust showsa little broken image picture. I can do a view source, and I see htmlbody leftmargin=0 topmargin=0 scroll=no embed width=100% height=100% fullscreen=yes src="">http://192.168.1.1/servlet/blah?blah=20"/body/html Any ideas on what's happening here? I was speculating that it was ignoring the redirect, since I don't see the second request come into Tomcat. So what's the deal? Thanks in advance, Brian