Re: Newbie question: FO files
Am 08.08.2001 16:38 Uhr schrieb Alex McLintock unter [EMAIL PROTECTED]: --- Ulrik [EMAIL PROTECTED] wrote: OK, so where can I find specifications about this fo-standard and how a compliant XML looks like? How about looking at the FOP website and reading the docs The more you help yourself the better treatment you'll get from any mailinglist. /As a member of more than one mailing list, I know that. I just couldn't find the needed information yesterday and thought maybe some kind folks on this list might push me into the right direction. I didn't mean to offend anyone by posing a newbie question. Ulrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Using FOP 0.19-CVS to create PDF
--- Don Wellington [EMAIL PROTECTED] wrote: Hi Arved- It is with FOP-0.19 not the latest CVS. I am stuck behind a firewall, so CVS is not really an option. I thought that too for some time but using WinCVS I managed to download the CVS version from CVS. You need to tell WinCVS about your firewall proxies. Alex = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ SF and Computing Book News and Reviews: http://news.diversebooks.com/ Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: FOP FAQ suggestion
--- Paul Furbacher [EMAIL PROTECTED] wrote: On Wednesday, August 8, 2001, Alex McLintock [EMAIL PROTECTED] wrote: Hmmm, I guess I better put this in the FAQ. Hmmm, I guess I better fix the FAQ. Alex, This is not meant as criticism. In fact, thanks for all the work you've done so far to maintain the FAQ. But, why not make life easier for yourself and set up a Faq-O-Matic? What - you mean like the one I already use? I am actually one of the world's biggest users of Jyve - a Java based FAQ-O-Matic based upon Apache software Turbine (and MySQL). It may not have the pedigree of the old perl based FAQ-O-Matic but Well I have my own reasons to use this FAQ-O-Matic servlet rather than the classic FAQ-O-Matic I have set up a program which is available on http://www.OWAL.co.uk:8090/asf/fop.jsp This however has two main faults. 1) It is on port 8090 and not 80. This is an apache administration issue which I don't really have time to sort out. 2) It doesn't allow people to register themselves. This is another configuration issue. Now I intend to replace this system with the latest version of Jyve and solve both of these problems but I'm in the middle of buying a house and so my spare time is a bit limited. It is however working quite well (IMHO). It only takes me seconds to spot a useful answer presented to this mailing list and to add it into the FAQ PS My own Jyve FAQ is available at -- http://www.owal.co.uk:8090/asf/servlet/asf/screen/DisplayTopics/action/SetAll/project_id/18/faq_id/277 -- It also contains a number of Future Enhancements which I have been talking about for ages and really need to sort out. Any java programmers interested in helping out? = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ SF and Computing Book News and Reviews: http://news.diversebooks.com/ Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Adding Bookmarks on Fop page......
if you look on this page you should find what you are looking for: http://xml.apache.org/fop/extensions.html there is also an example in docs/examples/fo/pdfoutline.fo Note: in current cvs this feature is broken On Thu, 09 Aug 2001 07:00:47 sunitha nair wrote: hi all, how can i add book mark on my pdf page.I mean chapter index on left side of my pdf page which link to the corresponding chapters,which will be showed on the screen.Index will remain always same on the page and only the content frame will change. please help me. regards sunitha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Keep line breaks in blocks ?
I'm using XSLT with FOP to genarate PDF from XML files. In my XML tags I have text pre-formated (with break lines). When I put this text into a block, it turns all lines into one same compact block. As white-space is not implemented yet in fo:blocks I'd like to know if there is a way to keep my break line in my fo:block ? TIA Romain Bourgue - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Newbie question: FO files
Thanks for the pointers! I'm reading the articles. and I just joined this list and this solved my fo problem http://www.xml.com/pub/a/2001/05/16/wrestle.html I was struggling to build a table that displayed a calender of events for August. I could not get the page break to 'work'. The above article pointed me in the right direction and we are now the proud owners of a calender of events for August in pdf. I find playing with working examples is a great way to learn. and reading. I have the first two of Elliotte Rusty Harold's XML books. (Thanks!) Does the XML Bible 2nd Edition contain a lot of new information? Gary Ulrik wrote: Am 08.08.2001 16:07 Uhr schrieb Ralph LaChance unter [EMAIL PROTECTED]: At 03:29 PM 8/8/01 +0100, you wrote: Now, what are Fo-files? (I said I was a newbie!) Can I transform my XML into those .fo-files? Thanx, any help is appreciated! I suggest you start here -- it is part I, with a link to part II http://www.xml.com/lpt/a/2001/01/17/xsl-fo/index.html Then follow up with this excellent chapter from a book by Elliotte Rusy Harold (a correspondent on this list) http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html better yet, buy it ;-) Thanks, those two links really helped out! That's the information I somehow couldn't find on the FOP site...then again, maybe I just haven't searched well enough ;) Anyway, thanx again! Ulrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Keep line breaks in blocks ?
--- Romain Bourgue [EMAIL PROTECTED] wrote: I'm using XSLT with FOP to genarate PDF from XML files. In my XML tags I have text pre-formated (with break lines). When I put this text into a block, it turns all lines into one same compact block. As white-space is not implemented yet in fo:blocks I'd like to know if there is a way to keep my break line in my fo:block ? Would putting each separate paragraph in a separate block help you? (and possibly putting all your blocks into another block) Alex = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ SF and Computing Book News and Reviews: http://news.diversebooks.com/ Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Keep line breaks in blocks ?
To preserve the line-break formatting you can use the white-space-collapse =false option of fo:block. For example: fo:block start-indent=72pt + 12ptjava_lang_Throwablefo:block space-before=0.6em space-after=0.6em white-space=pre white-space-collapse=false wrap-option=wrap background-color=#e0e0e0 font-family=monospace line-height=106% end-indent=24pt start-indent =72pt font-size=72% Line one Line two Line three /fo:block Regards, Ian Ian Larner User Technologies, IBM Hursley Lab, England Internal: 246440External: +44 1962 816440Fax: +44 9162 816151 Mailpoint 095 email: [EMAIL PROTECTED] The credit belongs to the man ...in the arena, (who) knowing there is no effort without ...shortcomings, actually strives to do the deeds... Theodore Roosevelt --- Romain Bourgue [EMAIL PROTECTED] wrote: I'm using XSLT with FOP to genarate PDF from XML files. In my XML tags I have text pre-formated (with break lines). When I put this text into a block, it turns all lines into one same compact block. As white-space is not implemented yet in fo:blocks I'd like to know if there is a way to keep my break line in my fo:block ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Converting XML to PDF...HELP!!!!!!
Hi, Thanks for quick reply. Yes, we are planning to serve PDF files via a web server. I will defiantly take your tip and test it out with Cocoon. Thanks a bunch. Mike -Original Message- From: Don Wellington [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 3:38 PM To: [EMAIL PROTECTED] Subject: Re: Converting XMP to PDF...HELP!! Hi Mike- Yes, that is the way to convert xml to pdf. And, you need to do it to every file before the user can read it in a PDF viewer. An alternative, if you are serving the PDF via a webserver is to use Cocoon. With Cocoon2 you can set it up such that when the web server gets a request for say file.pdf it will convert file.xml to pdf and return that to the user. It has a caching system so it will only perform the conversion once unless the xml file has changed. I hoep that helps. Don --- Patel, Mike [EMAIL PROTECTED] wrote: Hi, I am able to convert .XML files to .PDF using command line on Unix. This the command I use to convert. ./fop.sh firstdoc.xml -pdf firstdoc.pdf Is their any easy way to do this or I have to do this every time (using Unix script) before user can opens this documents in IE. Thanks in ADVANCE Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Public API Change in Driver (Was Re: [GUMP] Build Failure - Cocoon2)
Sam Ruby wrote: It appears that some fop interfaces are changing in a way that will impact cocoon2... is there work underway to keep these projects in synch? In particular, is there another backwards compatible set of interfaces that cocoon2 should be using during the transistion? This is probably introduced by Mark's patch. I have reported this in my report when I tested the patch before the commit (See the thread FOP in a servlet under load). Mark mentioned it in his web site for the patch too. The documentation (Embedding) should probably be updated by the committers to reflect the change. I don't think a backwards compatible interface is needed. Not for something with a version number of 0.19.0, and been characterized as pre-beta, not-production-ready and incomplete. (If that doesn't buy the project the rights to change the public interface at will, we might as well call it version 1.0). -- Weiqi Gao [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/svg PDFGraphics2D.java
keiron 01/08/09 06:29:31 Modified:src/org/apache/fop/svg PDFGraphics2D.java Log: fixes error that is displayed in new acrobat reader Revision ChangesPath 1.13 +4 -3 xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java Index: PDFGraphics2D.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFGraphics2D.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- PDFGraphics2D.java2001/07/30 20:29:34 1.12 +++ PDFGraphics2D.java2001/08/09 13:29:31 1.13 @@ -1,5 +1,5 @@ /* - * $Id: PDFGraphics2D.java,v 1.12 2001/07/30 20:29:34 tore Exp $ + * $Id: PDFGraphics2D.java,v 1.13 2001/08/09 13:29:31 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -40,7 +40,7 @@ * implementing a ttGraphic2D/tt piece-meal. * * @author a href=mailto:[EMAIL PROTECTED];Keiron Liddle/a - * @version $Id: PDFGraphics2D.java,v 1.12 2001/07/30 20:29:34 tore Exp $ + * @version $Id: PDFGraphics2D.java,v 1.13 2001/08/09 13:29:31 keiron Exp $ * @see org.apache.batik.ext.awt.g2d.AbstractGraphics2D */ public class PDFGraphics2D extends AbstractGraphics2D { @@ -747,7 +747,6 @@ */ public void drawString(String s, float x, float y) { // System.out.println(drawString(String)); -currentStream.write(BT\n); Shape imclip = getClip(); writeClip(imclip); @@ -755,6 +754,8 @@ applyColor(c, true); c = getBackground(); applyColor(c, false); + +currentStream.write(BT\n); Font gFont = getFont(); String name = gFont.getName(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/render/ps PSRenderer.java
keiron 01/08/09 06:51:56 Modified:src/org/apache/fop/datatypes Length.java src/org/apache/fop/render/pdf PDFRenderer.java src/org/apache/fop/render/ps PSRenderer.java Log: Revision ChangesPath 1.12 +3 -3 xml-fop/src/org/apache/fop/datatypes/Length.java Index: Length.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Length.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- Length.java 2001/07/30 20:29:19 1.11 +++ Length.java 2001/08/09 13:51:55 1.12 @@ -1,5 +1,5 @@ /* - * $Id: Length.java,v 1.11 2001/07/30 20:29:19 tore Exp $ + * $Id: Length.java,v 1.12 2001/08/09 13:51:55 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -59,9 +59,9 @@ if (unit.equals(in)) dvalue = dvalue * 72; else if (unit.equals(cm)) -dvalue = dvalue * 28.35; +dvalue = dvalue * 28.3464567; else if (unit.equals(mm)) -dvalue = dvalue * 2.84; +dvalue = dvalue * 2.83464567; else if (unit.equals(pt)) dvalue = dvalue; else if (unit.equals(pc)) 1.80 +4 -2 xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java Index: PDFRenderer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java,v retrieving revision 1.79 retrieving revision 1.80 diff -u -r1.79 -r1.80 --- PDFRenderer.java 2001/08/06 09:43:07 1.79 +++ PDFRenderer.java 2001/08/09 13:51:55 1.80 @@ -1,5 +1,5 @@ /* - * $Id: PDFRenderer.java,v 1.79 2001/08/06 09:43:07 keiron Exp $ + * $Id: PDFRenderer.java,v 1.80 2001/08/09 13:51:55 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -872,7 +872,9 @@ * Returns a customized the pixel to mm factor. */ public float getPixelToMM() { -return 0.26458f;// 72 dpi +// this is set to 72dpi as the values in fo are 72dpi +return 0.3528f; // 72 dpi +// return 0.26458333f;// 96dpi } /** 1.8 +4 -2 xml-fop/src/org/apache/fop/render/ps/PSRenderer.java Index: PSRenderer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/ps/PSRenderer.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- PSRenderer.java 2001/08/06 06:21:02 1.7 +++ PSRenderer.java 2001/08/09 13:51:56 1.8 @@ -1,5 +1,5 @@ /* - * $Id: PSRenderer.java,v 1.7 2001/08/06 06:21:02 keiron Exp $ + * $Id: PSRenderer.java,v 1.8 2001/08/09 13:51:56 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -961,7 +961,9 @@ * Returns a customized the pixel to mm factor. */ public float getPixelToMM() { -return 0.26458f;// 72 dpi +// this is set to 72dpi as the values in fo are 72dpi +return 0.3527778f; // 72 dpi +// return 0.26458333f;// 96dpi } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/render/awt AWTRenderer.java
keiron 01/08/09 07:04:21 Modified:src/org/apache/fop/render/awt AWTRenderer.java Log: changed the dpi for svg to 72 to be the same as other things in fop value should be in one place - same goes for other renderers Revision ChangesPath 1.31 +4 -2 xml-fop/src/org/apache/fop/render/awt/AWTRenderer.java Index: AWTRenderer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/awt/AWTRenderer.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- AWTRenderer.java 2001/08/06 06:21:02 1.30 +++ AWTRenderer.java 2001/08/09 14:04:21 1.31 @@ -1,5 +1,5 @@ /* - * $Id: AWTRenderer.java,v 1.30 2001/08/06 06:21:02 keiron Exp $ + * $Id: AWTRenderer.java,v 1.31 2001/08/09 14:04:21 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -1031,7 +1031,9 @@ * Returns a customized the pixel to mm factor. */ public float getPixelToMM() { -return 0.26458f;// 72 dpi +// this is set to 72dpi as the values in fo are 72dpi +return 0.3528f; // 72 dpi +// return 0.26458333f;// 96dpi } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser???
Hi I am able to run the fo from command line and get the printed output. Now the next is to embed in servlet. I tried running this servlet from jbuilder. with the library pointing to fop.jar,xalan.jar xcerces.jar , batik.jar, buildtools.jar I run into following error. javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import org.apache.fop.apps.*; import org.xml.sax.*; import javax.xml.transform.*; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; import javax.xml.transform.stream.StreamResult; public class fotest extends HttpServlet { /**Initialize global variables*/ public void init() throws ServletException { } /**Process the HTTP Get request*/ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try{ XMLReader xmlreader =createParser(); Writer writer = new StringWriter(); // Get an xslt processor factory TransformerFactory tFactory = TransformerFactory.newInstance(); File xmlfile = new File(d:\\temp\\Footnotes.xml); Source xmlSource = new StreamSource(xmlfile); File xslfile = new File(d:\\temp\\Footnotes.xsl); Source xslSheet = new StreamSource(xslfile); StreamResult xmlResult = new StreamResult(writer); Transformer transformer = tFactory.newTransformer(xslSheet); // Perform the transformation. transformer.transform(xmlSource, xmlResult); // send output from xsl transformation to a string reader // create a input source containing the xsl:fo file which can be fed to //Fop Reader reader = new StringReader(writer.toString()); writer.flush(); writer.close(); //set Driver methods to start Fop processing Driver driver = new Driver(); driver.setRenderer(org.apache.fop.render.pdf.PDFRenderer,.14); driver.addElementMapping(org.apache.fop.fo.StandardElementMapping); driver.addElementMapping(org.apache.fop.svg.SVGElementMapping); driver.addPropertyList(org.apache.fop.fo.StandardPropertyListMapping); driver.addPropertyList(org.apache.fop.svg.SVGPropertyListMapping); // send pdf writer output to a byte array stream ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintWriter printWriter = new PrintWriter(baos); //driver.setWriter(printWriter); driver.setOutputStream(baos); driver.buildFOTree(xmlreader, new InputSource(reader)); driver.format(); driver.render(); // send the bytes out to the servlet output stream response.setContentType(application/pdf); response.setContentLength(baos.size()); long sixty = System.currentTimeMillis() + 60*1000; response.setDateHeader(Expires, sixty); baos.writeTo(response.getOutputStream()); response.getOutputStream().flush(); } catch (Exception e) { System.out.println(e); } } /** * creates a SAX parser, using the value of org.xml.sax.parser * defaulting to org.apache.xerces.parsers.SAXParser * * @return the created SAX parser */ static XMLReader createParser() { XMLReader xmlreader = null; try { String parserClassName = System.getProperty(org.xml.sax.parser); if (parserClassName == null) { parserClassName = org.apache.xerces.parsers.SAXParser; } xmlreader= (XMLReader) Class.forName(parserClassName).newInstance(); } catch (Exception e) { System.out.println(e); } return xmlreader; } /**Clean up resources*/ public void destroy() { } } - Do let me know what the problem is . Thanks in advance. Mary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Multiple text align on a same line?
As the inline element dosn't support 'text-align' is it possible to have different aligment on a same line ? Something like this : [Left text] [centeredtext] [righttext] TIA Romain Bourgue - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser???
Hi Mary: You are Missing the code that sets the namespace feature. After making a call to the create Parser, you need to set features. I have included it below. Vallikun try{ XMLReader xmlreader =createParser(); // set the parser features try { parser.setFeature(http://xml.org/sax/features/namespace-prefixes,true); } catch (SAXException e) { // note: fix exceptions to print stack trace of original exception // see ServletUtils.getStackTraceAsString() //* throw new Exception(Error in setting up parser feature + namespace-prefixes.\n You need a parser + which support SAX version 2); } -- On Thu, 9 Aug 2001, Thomas, Mary wrote: Hi I am able to run the fo from command line and get the printed output. Now the next is to embed in servlet. I tried running this servlet from jbuilder. with the library pointing to fop.jar,xalan.jar xcerces.jar , batik.jar, buildtools.jar I run into following error. javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import org.apache.fop.apps.*; import org.xml.sax.*; import javax.xml.transform.*; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; import javax.xml.transform.stream.StreamResult; public class fotest extends HttpServlet { /**Initialize global variables*/ public void init() throws ServletException { } /**Process the HTTP Get request*/ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try{ XMLReader xmlreader =createParser(); Writer writer = new StringWriter(); // Get an xslt processor factory TransformerFactory tFactory = TransformerFactory.newInstance(); File xmlfile = new File(d:\\temp\\Footnotes.xml); Source xmlSource = new StreamSource(xmlfile); File xslfile = new File(d:\\temp\\Footnotes.xsl); Source xslSheet = new StreamSource(xslfile); StreamResult xmlResult = new StreamResult(writer); Transformer transformer = tFactory.newTransformer(xslSheet); // Perform the transformation. transformer.transform(xmlSource, xmlResult); // send output from xsl transformation to a string reader // create a input source containing the xsl:fo file which can be fed to //Fop Reader reader = new StringReader(writer.toString()); writer.flush(); writer.close(); //set Driver methods to start Fop processing Driver driver = new Driver(); driver.setRenderer(org.apache.fop.render.pdf.PDFRenderer,.14); driver.addElementMapping(org.apache.fop.fo.StandardElementMapping); driver.addElementMapping(org.apache.fop.svg.SVGElementMapping); driver.addPropertyList(org.apache.fop.fo.StandardPropertyListMapping); driver.addPropertyList(org.apache.fop.svg.SVGPropertyListMapping); // send pdf writer output to a byte array stream ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintWriter printWriter = new PrintWriter(baos); //driver.setWriter(printWriter); driver.setOutputStream(baos); driver.buildFOTree(xmlreader, new InputSource(reader)); driver.format(); driver.render(); // send the bytes out to the servlet output stream response.setContentType(application/pdf); response.setContentLength(baos.size()); long sixty = System.currentTimeMillis() + 60*1000; response.setDateHeader(Expires, sixty); baos.writeTo(response.getOutputStream()); response.getOutputStream().flush(); } catch (Exception e) { System.out.println(e); } } /** * creates a SAX parser, using the value of org.xml.sax.parser * defaulting to org.apache.xerces.parsers.SAXParser * * @return the created SAX parser */ static XMLReader createParser() { XMLReader xmlreader = null; try { String parserClassName = System.getProperty(org.xml.sax.parser); if (parserClassName == null) { parserClassName = org.apache.xerces.parsers.SAXParser; } xmlreader= (XMLReader) Class.forName(parserClassName).newInstance(); } catch (Exception e) { System.out.println(e); } return xmlreader; } /**Clean up resources*/ public void destroy() { } } - Do let me know what the problem is . Thanks in advance. Mary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser???
I am able to run the fo from command line and get the printed output. Now the next is to embed in servlet. I tried running this servlet from jbuilder. with the library pointing to fop.jar,xalan.jar xcerces.jar , batik.jar, buildtools.jar I run into following error. javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser Try using org.apache.fop.apps.TraxInputHandler. It lets you specify the files for the input XML and XSLT and gives you back an XMLReader and InputSource for use with buildFOTree(). That should allow you to skip the buffering you do with StringWriter/StringReader (The SAX events will get sent right through to FOP -- faster, less memory). I haven't tested it, but that's the way it is done when you use Fop.java. Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: FOP FAQ suggestion
On Thursday, August 9, 2001, Alex McLintock [EMAIL PROTECTED] wrote: --- Paul Furbacher [EMAIL PROTECTED] wrote: But, why not make life easier for yourself and set up a Faq-O-Matic? What - you mean like the one I already use? Oops. That'll teach me to visit before making suggestions! By the sound of a number of your previous posts about working on the FAQ, it didn't sound as though it had been automated. Not having run one, I'm guessing it's not as O-Matic as one would like? It also contains a number of Future Enhancements which I have been talking about for ages and really need to sort out. Any java programmers interested in helping out? Maybe. I do server-side Java -- servlets, JSPs, EJBs. Is that in line with the kind of help you need? (I'm also kind of busy contributing to Borland's newsgroups as one of their JBuilder TeamB members, so I don't know how much extra time I have.) Paul Furbacher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Using FOP 0.19-CVS to create PDF
My firewall does not allow IP tunneling. Without that even WinCVS doesn't help. Don --- Alex McLintock [EMAIL PROTECTED] wrote: --- Don Wellington [EMAIL PROTECTED] wrote: Hi Arved- It is with FOP-0.19 not the latest CVS. I am stuck behind a firewall, so CVS is not really an option. I thought that too for some time but using WinCVS I managed to download the CVS version from CVS. You need to tell WinCVS about your firewall proxies. Alex = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ SF and Computing Book News and Reviews: http://news.diversebooks.com/ Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
please help!!!
I have a table with 4 columns. One of the cells has text in it that is bigger than the size of the column and the text is over-writing the text in the following cell. How do I stop this? I have this: fo:table fo:table-column column-width=2.625in/ fo:table-column column-width=2.625in/ fo:table-column column-width=2.625in/ fo:table-column column-width=2.625in/ fo:table-body fo:table-row fo:table-cell fo:block text-align=start font-size=10pt line-height=14pt overflow=hidden wrap-option=wrap This is some text in cell 1 that will over-write the text in cell 2. /fo:block /fo:table-cell fo:table-cell fo:block text-align=start font-size=10pt line-height=14pt overflow=hidden wrap-option=wrap This is some text in cell 2. /fo:block /fo:table-cell fo:table-cell fo:block text-align=start font-size=10pt line-height=14pt overflow=hidden wrap-option=wrap This is some text in cell 3. /fo:block /fo:table-cell fo:table-cell fo:block text-align=start font-size=10pt line-height=14pt overflow=hidden wrap-option=wrap This is some text in cell 4. /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table -Eric Eric Deandrea Software Engineer (978) 698-6351 Inforonics, Inc. [EMAIL PROTECTED] 30 Porter Rd. Littleton, MA 01460 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[Bug 3059] New: - 0.19.0 'dark grey', 'light grey' borders render black horizontally
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3059 *** shadow/3059 Thu Aug 9 09:18:40 2001 --- shadow/3059.tmp.18492 Thu Aug 9 09:18:40 2001 *** *** 0 --- 1,35 + ++ + | 0.19.0 'dark grey', 'light grey' borders render black horizontally | + ++ + |Bug #: 3059Product: Fop | + | Status: NEW Version: all | + | Resolution:Platform: PC | + | Severity: MinorOS/Version: Windows NT/2K | + | Priority: Other Component: pdf renderer| + ++ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED]| + | CC list: Cc: | + ++ + | URL: | + ++ + | DESCRIPTION | + In ~15 tests, all the below consistently produced grey vertical lines and black + horizontal lines on both screen and print renderings. 'gray', 'black', 'blue', + etc rendered correctly. + + Tested using: + NT 4.0 build 1381 Service Pack 6 + FOP 0.19.0 with the standard .jar files included with the bin download. + jbuilder3 java.exe + + fo:block-container border-color=dark gray ... + + fo:block-container border-color=dark grey ... + + fo:table-cell border-width=1pt border-color=dark gray border- + style=solid ... + + fo:table-cell border-width=1pt border-color=dark grey ... + + fo:table-cell border-width=1pt border-color=light gray ... \ No newline at end of file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[Bug 3061] New: - Link 'click' location doesn't take padding-top into account
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3061 *** shadow/3061 Thu Aug 9 10:11:34 2001 --- shadow/3061.tmp.18662 Thu Aug 9 10:11:34 2001 *** *** 0 --- 1,23 + ++ + | Link 'click' location doesn't take padding-top into account| + ++ + |Bug #: 3061Product: Fop | + | Status: NEW Version: 0.17| + | Resolution:Platform: PC | + | Severity: Normal OS/Version: Windows NT/2K | + | Priority: Other Component: pdf renderer| + ++ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + ++ + | URL: | + ++ + | DESCRIPTION | + When a basic-link is located on a page following one or more blocks with a + 'padding-top', the link location box (the highlight box/click location) appears + in a position above where it should have appeared. (The vertical offset is + equal to the sum of the 'padding-top' values of the blocks occurring on the same + page, prior to the link block. + + I've attached the fo input and the PDF output (from 0.19.0) \ No newline at end of file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[Bug 3061] - Link 'click' location doesn't take padding-top into account
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3061 *** shadow/3061 Thu Aug 9 10:11:34 2001 --- shadow/3061.tmp.18672 Thu Aug 9 10:13:15 2001 *** *** 21,23 --- 21,27 page, prior to the link block. I've attached the fo input and the PDF output (from 0.19.0) + + --- Additional Comments From [EMAIL PROTECTED] 2001-08-09 10:13 --- + Created an attachment (id=403) + Input 'fo' file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
how do i force a linebreak?
Hi there: I've gone through the extensive.fo example but still couldn't find the answer to my question.. which is: If I want to display a 3-line centered title and I want to force a line break after a specific word, how do I do that? If I used fo:block text-align="center"it doesn't give me control over where the linebreak should be.. I tried to use "\n" but this gets printed verbatim.. any ideas? also where would be a good url to learn such things? Thanks Charlie Charlie Wu.vcf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: positioning of blocks
Use Block Containers here is an example fo:block-container height=225pt width=275pt top=45pt left=60pt padding=3pt position=absolute fo:block xsl:call-template name=LEGEND/ /fo:block /fo:block-container Maring, Steve wrote: I need to position blocks at very specific places on a page. These blocks corespond to the location of fields that need to be filled in on a form which was originally just paper based. Can I get an example of how I might use absolute or relative positioning to achieve this? Or do I need to do something else? Thanks. -Steve Maring - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FOP help please...
Charlie Wu.vcf ATT02740.txt Hi there: I downloaded the latest FOP from xml.apache.org and was trying to run some simple tests from the commandline.. The documentation says you should just run: FOP fo_inputfile pdf_outputfile (see http://xml.apache.org/fop/running.html http://xml.apache.org/fop/running.html ) but I can't find a FOP.exe or FOP unix binary anywhere.. and since this is java I suspect there isn't any FOP anywhere anyway.. so I searched google.com and looked for commandline examples and found many references to calling org.apache.fop.apps.CommandLine - but then when I checked this against the fop.jar there's NO CLASS with that name!! I couuld only find Command, CommandLineStarter, and CommandLineOptions.. So what gives Can someone please help me out??? Thanks Charlie begin 600 Charlie Wu.vcf M0D5'24XZ5D-!4D0-E9%4E-)3TXZ,BXQ#0I..E=U.T-H87)L:64-D9..D-H M87)L:64@5W4-D]21SIF]C861E.U=E8B!496-H;F]L;V=I97,-E1)5$Q% M.E-E;FEOB!!'!L:6-A=EO;B!$979E;]P97(-E1%3#M73U)+.U9/24-% M.C0P.TS.3(M-3(X,PT*0412.U=/4DLZ.U-*-2TU0S(Y#0I,04)%3#M73U)+ M.E-*-2TU0S(Y#0I%34%)3#M04D5.TE.5$523D54.F-W=4!F]C861E+D-/ F30T*4D56.C(P,#$P-3`S5#(Q-38R,5H-D5.1#I60T%21`T*#0H= ` end begin 600 ATT02740.txt M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM#0I);B!C87-E(]F('1R;W5B;5S M+!E+6UA:6PZ(`@(!W96)M87-T97)`UL+F%P86-H92YOF-E1O('5N MW5BV-R:6)E+!E+6UA:6PZ(`@(`@(`@(=E;F5R86PM=6YS=6)S8W)I M8F5`UL+F%P86-H92YOF-D9OB!A91I=EO;F%L(-O;6UA;F1S+!E B+6UA:6PZ(=E;F5R86PM:5L$!X;6PN87!A8VAE+F]R9P== ` end - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: FOP help please...
Yes, it is misleading on the site. You can use the following on the command line (assuming all the relevant jars are in your classpath): java org.apache.fop.apps.Fop file.fo file.pdf Kevin At 09:41 PM 8/8/01 -0700, you wrote: Charlie Wu.vcf ATT02740.txt Hi there: I downloaded the latest FOP from xml.apache.org and was trying to run some simple tests from the commandline.. The documentation says you should just run: FOP fo_inputfile pdf_outputfile (see http://xml.apache.org/fop/running.html http://xml.apache.org/fop/running.html ) but I can't find a FOP.exe or FOP unix binary anywhere.. and since this is java I suspect there isn't any FOP anywhere anyway.. so I searched google.com and looked for commandline examples and found many references to calling org.apache.fop.apps.CommandLine - but then when I checked this against the fop.jar there's NO CLASS with that name!! I couuld only find Command, CommandLineStarter, and CommandLineOptions.. So what gives Can someone please help me out??? Thanks Charlie - Kevin Ward Web Developer Lattice Semiconductor Corporation NE Moore Court Hillsboro, OR 97124-6421 Ph: 503.268.8656 Fx: 503.268.8693 [EMAIL PROTECTED] http://www.latticesemi.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: how do i force a linebreak?
Hello, Charile: I guess you need this: fo:block text-align="center" fo:blockThis is/fo:block fo:blocka 3-line centered/fo:block fo:blocktitle/fo:block /fo:block It is very easy to write a template rule to do this specific work with XPath string functions. Frank Chen - Original Message - From: Charlie Wu To: '[EMAIL PROTECTED]' Sent: Friday, August 10, 2001 1:20 AM Subject: how do i force a linebreak? Hi there: I've gone through the extensive.fo example but still couldn't find the answer to my question.. which is: If I want to display a 3-line centered title and I want to force a line break after a specific word, how do I do that? If I used fo:block text-align="center"it doesn't give me control over where the linebreak should be.. I tried to use "\n" but this gets printed verbatim.. any ideas? also where would be a good url to learn such things? Thanks Charlie -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]
Re: Public API Change in Driver (Was Re: [GUMP] Build Failure - Cocoon2)
At 10:33 AM 8/9/01 -0400, Sam Ruby wrote: I realize that xml-fop is one of those projects which is perennially in alpha. What I am looking for is concrete suggestions on how Cocoon2 should deal with this state. Sam, I figure you meant the perennially in alpha comment sort of tongue-in-cheek. I hope you did, anyway. Still, it's not the kind of observation, serious or otherwise, that fills me with joy. I suspect you might not be the only one who thinks FOP is a bit of a lame duck. I'm sorry if FOP is perceived that way - the fact is, we don't have any high-powered big companies throwing huge chunks of resources or code in our direction, all of us work at real jobs which usually have little or nothing to do with XSL or FOP, and apparently most of us have social lives. It's also worth pointing out that the XSL spec is large, has plenty of loopholes and ambiguities still, and isn't even a Recommendation yet. The problem of formatting pages is highly complex - just go out and ask people that have been doing it for a while. I'd say that the inherent problem is considerably more complex than processing XML or XSL. Ask yourself how well you think Xerces or Xalan would be doing if they had been donated a starter chunk of code that covered maybe 25% of an obsolete early version of their respective specs, and had never had any full-time bodies assigned to them either. Let's get one thing straight - we're not in alpha. We're not even close to alpha. You're on the XML PMC...it would be nice to hear constructive suggestions rather than snide comments. Regards, Arved Sandstrom Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop CHANGES
arved 01/08/09 19:07:05 Modified:.CHANGES Log: Changes from 0.18 to 0.19 Revision ChangesPath 1.7 +185 -0xml-fop/CHANGES Index: CHANGES === RCS file: /home/cvs/xml-fop/CHANGES,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- CHANGES 2001/04/02 06:59:47 1.6 +++ CHANGES 2001/08/10 02:07:05 1.7 @@ -1,3 +1,188 @@ +== +Done since 0.19 release + +== +Done since 0.18 release + +*** Building +- improvements and fixes to build.xml (ASandstrom,KCampbell) + +*** General +- Changes to support Batik (KLiddle) +{ FOP now uses Batik to render svg +This is handled for awt - using batik to render to a graphic +and pdf. +Pdf still requires better image support. +The elements and properties are generated from the svgelements.xml +document. +The version of batik is 17/05/2001 cvs. } +- memory buffering (Seshadri G.K.) + +*** Examples +- Added Norwegian hyphenation based on Rune Kleveland's original +nohyphb.tex TeX patterns from the ispell-norsk-2.0 package (TEngvig) +adds Danish text (Lars Michael Johnsen) +- fixed up fills and borders for better appearance (KLiddle) +- Fixed basic-link horizontal position with justification turned on. (KCampbell) +- add border-collapse property (KLease) +- Added CID Font example (KCampbell) + +*** Hyphenation +- corrected danish hyphenation (Carlos Villegas) +- adds Danish hyphenation file (Carlos Villegas) +- Added Norwegian hyphenation based on Rune Kleveland's original +nohyphb.tex TeX patterns from the ispell-norsk-2.0 package (TEngvig) +- Hyphenation patterns for russian (TEngvig) + +*** codegen +- The elements and properties are generated from the svgelements.xml +document. (KLiddle) + +*** Package org.apache.fop.apps: +- support for XMLRenderer (ASandstrom) +- Removed uses of System.out where throwing a FOPException should suffice. +Refactored code to throw FOPExceptions so embedding FOP wont' cause app +server JVMs to exit. (KCampbell) +- adding -text and -pcl options to help text (FJannidis) +- sets baseDir to a URL string rather than a file path string (KLiddle) + +*** Package org.apache.fop.datatypes: +- New datatype to represent the property border-separation (KLease) + +*** Package org.apache.fop.fo: +- fixed a couple of problems when placing foreign objects near +page break (KLiddle) +- Support for LengthPair property type (KLease) +- restored support for external svg images (KLiddle) + +*** Package org.apache.fop.fo.flow: +- inlining of images (ASandstrom, Seshadri G.K.) +- footnote height problem fix (KLiddle) +- fixed a couple of problems when placing foreign objects near +page break (KLiddle) +- added support for 'number-columns-repeated' (G. Pretterhofer) +- fixes a null pointer ex if area is removed before creating area (KLiddle) +- footnote height/id reference problem fixes (KLiddle) +- Fix body positioning; remove widow and orphan handling for rows (KLease) +- Make borders closer to CR spec (KLease) +- Improves cell borders when border-collapse=collapse (the default). Note that +this doesn't implement the full CR, but it's a big improvement and will handle +many common cases. (KLease) +- Stop tables from breaking too early, but make sure that all cells are +composed with the same maxHeight and that absolute Height is set correctly. +In TableRow.java, remove old commented out stuff and put back space-before +(for now) and fix a potential bug involving space-before. (KLease) +- Overflows may cause a row to be re-laid out, need to skip cell content +that has already been processed. (AWelch) +- Put back background on table-column and table-cell (KLease) +- increasing padding problem fix (KLiddle) +- Each column in the row should start with the same height available. (AWelch) +- For borders to be drawn properly on overflowed rows must process all +children. (AWelch) +- Use Constants values. (KLease) + +*** Package org.apache.fop.fo.pagination: +- running page num ctr now instance variable for servlet use (KLiddle) +- Made logging go to the same stream (out) for pages and the newline +after a page sequence. The newline was previously going to the err stream. +(KCampbell) + +*** Package org.apache.fop.fonts: +- Patch from [EMAIL PROTECTED] to use unicode escape char instead of +pound sign because it was interpreted as an invalid double byte char in +Japanese locale (ja_JP.EUC) and wouldn't compile. (TEngvig) +- Fixes a signedness bug in handling cmaps that caused some fonts to be +invalid. (TEngvig) +- Some fonts contains malformed composite glyphs which used to make fop
Release Schedule
Hi, all I have the 0.18 to 0.19 changes put into the CHANGES file. Please review carefully. I am committing the 0.19 to 0.20 changes to that file tomorrow evening. You'll have until Sunday to review the CHANGES file. I'll make final mods to that file Sunday, immediately prior to building the release. If you've got an issue with credits, please pipe up. :-) We had quality control problems (my fault) with existence, location and condition of DOS batch files in the last release. I promise to be more careful with these this time. Can anyone think of anything else that relates to the suitability and serviceability of the distributions? I am still (and have been for quite a while) very undecided about whether to include Javadoc (size considerations). Perhaps in the source distro only? Comments? Regards, Arved Sandstrom -- Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Halifax, Nova Scotia Wireless * B2B * J2EE * XML - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Public API Change in Driver (Was Re: [GUMP] Build Failure - Cocoon2)
FOP underwent some major refactoring to massively reduce memory usage, and it might not be possible to make a workable deprecated API for backwards compatibility. (Mark?) We don't break API compatibility lightly, and don't expect to have to do so again in the foreseeable future. Sorry for not posting to Cocoon-dev earlier what was up. I remember wishing that I didn't have to make the API changes because, well, public API changes are bad, ok? But in the end it was necessary because the old API implicitly assumes that the FO tree building is separate from the formatting/rendering, which is no longer the case. I can't imagine how one would write a compatability layer. (As an aside I will be away on holidays from Sunday - thankfully out of the reach of my laptop (unless someone posts it to a small island in thailand ;). So if anyone has questions/comments/abuse then you'll have to wait till I get back. :-) Cheers Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Release Schedule
Please include javadoc and the batch files in both the src release and binary release.. it took me hours to figure out hwo to get fop to work because i only downloaded the binary release (0.19).. thanks Charlie -Original Message- From: Arved Sandstrom [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 09, 2001 4:14 PM To: [EMAIL PROTECTED] Subject: Release Schedule Hi, all I have the 0.18 to 0.19 changes put into the CHANGES file. Please review carefully. I am committing the 0.19 to 0.20 changes to that file tomorrow evening. You'll have until Sunday to review the CHANGES file. I'll make final mods to that file Sunday, immediately prior to building the release. If you've got an issue with credits, please pipe up. :-) We had quality control problems (my fault) with existence, location and condition of DOS batch files in the last release. I promise to be more careful with these this time. Can anyone think of anything else that relates to the suitability and serviceability of the distributions? I am still (and have been for quite a while) very undecided about whether to include Javadoc (size considerations). Perhaps in the source distro only? Comments? Regards, Arved Sandstrom -- Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Halifax, Nova Scotia Wireless * B2B * J2EE * XML - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/tools TestConverter.java
keiron 01/08/09 23:19:16 Modified:src/org/apache/fop/tools TestConverter.java Log: improves comparison should be faster now Revision ChangesPath 1.10 +7 -3 xml-fop/src/org/apache/fop/tools/TestConverter.java Index: TestConverter.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/tools/TestConverter.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- TestConverter.java2001/08/01 23:08:55 1.9 +++ TestConverter.java2001/08/10 06:19:16 1.10 @@ -1,5 +1,5 @@ /* - * $Id: TestConverter.java,v 1.9 2001/08/01 23:08:55 gears Exp $ + * $Id: TestConverter.java,v 1.10 2001/08/10 06:19:16 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -253,11 +253,15 @@ /** * Compare files. + * Returns true if equal. */ protected boolean compareFiles(File f1, File f2) { +if(f1.length() != f2.length()) { +return false; +} try { -InputStream is1 = new FileInputStream(f1); -InputStream is2 = new FileInputStream(f2); +InputStream is1 = new BufferedInputStream(new FileInputStream(f1)); +InputStream is2 = new BufferedInputStream(new FileInputStream(f2)); while (true) { int ch1 = is1.read(); int ch2 = is2.read(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]