keep-together
Hello,i have the following table:fo:table keep-together.within-page="always"by using keep together the table should not be broken at the end of thepage.FOP 0.17 doesn't give any error messages.But the table is split at the end of the page.How can I prevent the table from breaking ?Thanks a lot.Falk
[Bug 2207] New: - Embedding problems
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2207 *** shadow/2207 Mon Jun 18 01:06:41 2001 --- shadow/2207.tmp.18367 Mon Jun 18 01:06:41 2001 *** *** 0 --- 1,41 + ++ + | Embedding problems | + ++ + |Bug #: 2207Product: Fop | + | Status: NEW Version: all | + | Resolution:Platform: PC | + | Severity: MajorOS/Version: Windows NT/2K | + | Priority: Other Component: general | + ++ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED]| + | CC list: Cc: | + ++ + | URL: | + ++ + | DESCRIPTION | + Hi there, + + I have some difficulty embedding the Bar39f true type font. At the bottom of + my e-mail you can find an indication of what the error is when tryong to + embed this font. + Currently, I'm using the latest version of FOP. + I would be most thankful if you could assist me in my problem. + + Kind Regards, + Hannes Pieters. + + S/W Solutions + Data Solve + + C:\java org.apache.fop.fonts.apps.TTFReader bar39f.ttf bar39f.xml + Reading bar39f.ttf... + + Number of glyphs in font: 74 + java.io.EOFException: Reached EOF, file size=13152 offset=77044 + at + org.apache.fop.fonts.FontFileReader.seek_set(FontFileReader.java:73) + at org.apache.fop.fonts.TTFFile.readCMAP(TTFFile.java:208) + at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:395) + at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:183) + at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:145) \ No newline at end of file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: keep-together
Falk, keep-together is not supported presently.. Try keep-with-previous or keep-with-next.. That may help. Raju Dave - Original Message -- Falk [EMAIL PROTECTED] wrote: To:[EMAIL PROTECTED] From:Falk [EMAIL PROTECTED] Date:Mon, 18 Jun 2001 10:04:27 +0200 Subject: keep-together Hello, i have the following table: fo:table keep-together.within-page=3Dalways by using keep together the table should not be broken at the end of the page. FOP 0.17 doesn't give any error messages. But the table is split at the end of the page. How can I prevent the table from breaking ? Thanks a lot. Falk _ Buy Lagaan Yaadein music for 30% less. Avail this special offer at http://shopping.rediff.com/shopping/music/offerrediffmailer.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/svg PDFDocumentGraphics2D.java PDFGraphics2D.java SVGElement.java
keiron 01/06/18 01:19:34 Modified:src/org/apache/fop/svg PDFDocumentGraphics2D.java PDFGraphics2D.java SVGElement.java Log: PDFNumber uses static methods Revision ChangesPath 1.5 +3 -4 xml-fop/src/org/apache/fop/svg/PDFDocumentGraphics2D.java Index: PDFDocumentGraphics2D.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFDocumentGraphics2D.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- PDFDocumentGraphics2D.java2001/05/18 10:03:15 1.4 +++ PDFDocumentGraphics2D.java2001/06/18 08:19:19 1.5 @@ -1,4 +1,4 @@ -/* $Id: PDFDocumentGraphics2D.java,v 1.4 2001/05/18 10:03:15 keiron Exp $ +/* $Id: PDFDocumentGraphics2D.java,v 1.5 2001/06/18 08:19:19 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. @@ -24,7 +24,7 @@ * ttPDFGraphics2D/tt. * * @author a href=mailto:[EMAIL PROTECTED];Keiron Liddle/a - * @version $Id: PDFDocumentGraphics2D.java,v 1.4 2001/05/18 10:03:15 keiron Exp $ + * @version $Id: PDFDocumentGraphics2D.java,v 1.5 2001/06/18 08:19:19 keiron Exp $ * @see org.apache.fop.svg.PDFGraphics2D */ public class PDFDocumentGraphics2D extends PDFGraphics2D { @@ -79,8 +79,7 @@ * The result is scaled so that the svg fits correctly inside the pdf document. */ public void setSVGDimension(float w, float h) { -PDFNumber pdfNumber = new PDFNumber(); -currentStream.write( + pdfNumber.doubleOut(width / w) + 0 0 + pdfNumber.doubleOut(height / h) + 0 0 cm\n); +currentStream.write( + PDFNumber.doubleOut(width / w) + 0 0 + PDFNumber.doubleOut(height / h) + 0 0 cm\n); } /** 1.7 +54 -63xml-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.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- PDFGraphics2D.java2001/06/07 10:08:42 1.6 +++ PDFGraphics2D.java2001/06/18 08:19:20 1.7 @@ -1,4 +1,4 @@ -/* $Id: PDFGraphics2D.java,v 1.6 2001/06/07 10:08:42 keiron Exp $ +/* $Id: PDFGraphics2D.java,v 1.7 2001/06/18 08:19:20 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. @@ -38,7 +38,7 @@ * implementing a ttGraphic2D/tt piece-meal. * * @author a href=mailto:[EMAIL PROTECTED];Keiron Liddle/a - * @version $Id: PDFGraphics2D.java,v 1.6 2001/06/07 10:08:42 keiron Exp $ + * @version $Id: PDFGraphics2D.java,v 1.7 2001/06/18 08:19:20 keiron Exp $ * @see org.apache.batik.ext.awt.g2d.AbstractGraphics2D */ public class PDFGraphics2D extends AbstractGraphics2D { @@ -416,8 +416,6 @@ currentColour = new PDFColor(c.getRed(), c.getGreen(), c.getBlue()); currentStream.write(currentColour.getColorSpaceOut(false)); -PDFNumber pdfNumber = new PDFNumber(); - applyPaint(getPaint(), false); applyStroke(getStroke()); @@ -427,26 +425,26 @@ int type = iter.currentSegment(vals); switch (type) { case PathIterator.SEG_CUBICTO: -currentStream.write(pdfNumber.doubleOut(vals[0]) + - + pdfNumber.doubleOut(vals[1]) + + -pdfNumber.doubleOut(vals[2]) + + -pdfNumber.doubleOut(vals[3]) + + -pdfNumber.doubleOut(vals[4]) + + -pdfNumber.doubleOut(vals[5]) + c\n); +currentStream.write(PDFNumber.doubleOut(vals[0]) + + + PDFNumber.doubleOut(vals[1]) + + +PDFNumber.doubleOut(vals[2]) + + +PDFNumber.doubleOut(vals[3]) + + +PDFNumber.doubleOut(vals[4]) + + +PDFNumber.doubleOut(vals[5]) + c\n); break; case PathIterator.SEG_LINETO: -currentStream.write(pdfNumber.doubleOut(vals[0]) + - + pdfNumber.doubleOut(vals[1]) + l\n); +currentStream.write(PDFNumber.doubleOut(vals[0]) + + + PDFNumber.doubleOut(vals[1]) + l\n);
Re: Chinese PDF.
This chap will hopefully be joining the mailing list soon. This is the mail he sent me, and my reply to him. Alex Please check the website, and then subscribe to the FOP mailing list . Instructions for doing so are on the FOP website. Alex --- zhou hao [EMAIL PROTECTED] wrote: Alex: I want to generate the Chinese PDF with FOP. But I failed with changing the encoding style from utf-8 into gb2312. How can I do? Thanks. zhou hao. = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ DR WHO COMPETITION: http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104 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]
[Bug 2170] - Table Column overflow - endless loop
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2170 *** shadow/2170 Wed Jun 13 21:56:55 2001 --- shadow/2170.tmp.18535 Mon Jun 18 01:39:14 2001 *** *** 2,9 | Table Column overflow - endless loop | ++ |Bug #: 2170Product: Fop | ! | Status: NEW Version: all | ! | Resolution:Platform: PC | | Severity: MajorOS/Version: Windows NT/2K | | Priority: Other Component: pdf renderer| ++ --- 2,9 | Table Column overflow - endless loop | ++ |Bug #: 2170Product: Fop | ! | Status: RESOLVEDVersion: all | ! | Resolution: FIXED Platform: PC | | Severity: MajorOS/Version: Windows NT/2K | | Priority: Other Component: pdf renderer| ++ *** *** 1632,1634 --- 1632,1637 /fo:flow /fo:page-sequence /fo:root + + --- Additional Comments From [EMAIL PROTECTED] 2001-06-18 01:39 --- + Works as of FOP 0.19 \ No newline at end of file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
The new Release 0.19
Hi Arved, I am been using FOP 0.17 and I wanted to confirm that by using FOP 0.19 or its stable version I would not be changing my XSL-FO files. Please do let me know as I am interested in the new features as well as do not want to rewrite the old XSLs Thanks, -Chetan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Help in XML Rendering to PostScript
I am fairly new to FOP and to Java as well. I am wondering if anyone has written a rendering to convert an XML stream to Postscript with FOP (similar to the PCL or PDF renderer) - I am in desperate need of a mechanism to do this. We have a current Java app that converts an XML stream into PDF, but printing through Adobe Acrobat is too resource intensive on the lower end machines. I have tried converting to PCL and then streaming to a port, which works pretty well, but is not a 100% compatibile (PCL beng only HP) If anyone knows of a way to convert an XML to PS format using a custom FOP piece they've written, or knows of a better mechanism, I'd be forever grateful! I've started a Postscript renderer some time ago. It produces Level 2 Postscript and DSC comments. It's certainly not production ready, though. The whole SVG stuff is missing and it would have to be updated for the current CVS version. If it helped you I could update the code to fit with the current CVS version and post it to be integrated with FOP. You would have to give me a week or so to do that. Just tell me. Also depends on the comitters if they want the code in the current status... But since you're new to Java I doubt that it will help you much because you would have to improve the code yourself (or find someone to do it for you). Have you tried Ghostscript for the conversion? I don't know, but it might be worth a try. 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: Help in XML Rendering to PostScript
Hello, It is for a company in South American, and the low end platforms are either P133/32 or P200/64 - launching it in Adobe Acrobat to print takes a long time/ -Original Message- From: Alex McLintock [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 11:36 AM To: [EMAIL PROTECTED] Subject: Re: Help in XML Rendering to PostScript --- [EMAIL PROTECTED] wrote: Hello, I have tried converting to PCL and then streaming to a port, which works pretty well, but is not a 100% compatibile (PCL beng only HP) IMHO a large number of printers are PCL compatible nowadays - even those not made by HP. I'd say they were more common than postscript - Why are you doing this on low spec machines? Alex = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ DR WHO COMPETITION: http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
table-cell height property
Index: src/org/apache/fop/fo/flow/TableCell.java === RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/fo/flow/TableCell.java,v retrieving revision 1.32 diff -u -r1.32 TableCell.java --- src/org/apache/fop/fo/flow/TableCell.java 2001/06/14 21:22:54 1.32 +++ src/org/apache/fop/fo/flow/TableCell.java 2001/06/18 09:37:14 @@ -49,6 +49,7 @@ /* ivan demakov */ protected int borderHeight = 0; + protected int cellHeight = 0; protected int height = 0; protected int top; // Ypos of cell ??? @@ -118,6 +119,7 @@ } else bRelativeAlign = false; // Align on a per-cell basis + this.cellHeight = this.properties.get(height).getLength().mvalue(); } @@ -158,7 +160,7 @@ this.cellArea = new AreaContainer(propMgr.getFontState(area.getFontInfo()), startOffset, beforeOffset, - width, area.spaceLeft()- m_borderSeparation/2 + borderHeight/2, + width, spaceLeft - m_borderSeparation/2 + borderHeight/2, Position.RELATIVE); cellArea.foCreator=this; // G Seshadri @@ -194,6 +196,7 @@ return new Status(Status.AREA_FULL_SOME); } } + area.setMaxHeight(area.getMaxHeight() - spaceLeft + this.cellArea.getMaxHeight()); } @@ -218,7 +221,8 @@ // TableRow calls this. Anyone else? public int getHeight() { // return cellArea.getHeight() + spaceBefore + spaceAfter; -return cellArea.getHeight() + m_borderSeparation - borderHeight / 2; +if (cellHeight 0) return cellHeight; +return cellArea.getHeight() + m_borderSeparation - borderHeight/2; } /** Called by TableRow to set final size of cell content rectangles and @@ -290,6 +294,10 @@ this.beforeOffset = m_borderSeparation/2 + bp.getBorderTopWidth(false) + bp.getPaddingTop(false); // bp.getBorderBeforeWidth(false) + bp.getPaddingBefore(false); + if (this.cellHeight 0) { +this.cellHeight += this.beforeOffset + m_borderSeparation/2 + + bp.getBorderBottomWidth(false) + bp.getPaddingBottom(false); + } } else { //System.err.println(Collapse borders); @@ -332,6 +340,9 @@ this.beforeOffset = borderBefore/2 + bp.getPaddingTop(false); this.borderHeight = borderBefore + borderAfter; + if (this.cellHeight 0) { +this.cellHeight += this.beforeOffset + borderAfter/2 + bp.getPaddingBottom(false); + } } } } -- ivan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: When will FOP support proper table transforms
I am evaluating XSL:FO transform engines for use with production documentation. I have been trying to use FOP (Fop-0.18.1-DEV), but find that its poor table support effectively renders it unusable for production documentation. In particular, the cell alignment, spacing, and borders are problematic, and multi-row cells are not supported. (A significant number of our XML articles use multi-row cells.) When is FOP going to support proper table transforms? 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: small code fix
I added this to CVS. -Kelly -Original Message- From: Chris Burkey [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 9:32 AM To: [EMAIL PROTECTED] Subject: small code fix Hello, Here is one line of code added to latest CVS, as shown: org.apache.fop.fo.FOTreeBuilder public void startDocument() { //CB: Added this so that a TreeBuilder could be reused with a new document rootFObj = null; MessageHandler.logln(building formatting object tree); } Can someone put this into CVS? It allows a Driver class to be reused from one parse/rendering to the next. Thus speeding up subsequent rendering (by a bunch). regards, -christopher Christopher Burkey[EMAIL PROTECTED] President 513-542-3401 eInnovation Inc. http://einnovation.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]
Re: Inlining of External Graphic
Hello, I have just tested FOP 0-19 and the images are inline now ...That really is great ! However, the text and the image are aligned on the top and not at the bottom. Is therer a way to adjust that ? Thanks for any suggestion ! Nam - Original Message - From: Arved Sandstrom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 10, 2001 4:09 PM Subject: Inlining of External Graphic Initial code for ensuring that ExternalGraphic is inlined is now up in CVS. I should add that this is 100% Seshadri GK's work; however, it matches what I did some weeks back (recall a previous email example) to about 75%, so I'll claim some small share of the credit. :-) Also some small share of the brickbats...the vertical alignment for inlined graphics is unconventional, and we will doubtless have to adjust it so that the bottom edge of images is aligned with the text baseline. If anyone is looking for an interesting little problem, this is one. It also relates to line-stacking in general - we also need work done on adjusting line-height if there are runs of text with different heights on the same line. 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] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Gump xalan2 failures
Scott, Is it possible you have an older version of FOP checked out and didn't do a build clean? That's about the only thing I can think of that might be causing that ambiguous class error. I will try a clean build using Xalan2 from CVS and see what happens. -Kelly -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 4:38 PM 3) I can't seem to build xml-fop: compile: Compiling the sources [javac] Compiling 133 source files to E:\xml-fop\build\classes [javac] E:\xml-fop\build\src\org\apache\fop\image\ImageArea.java:64: Ambiguo us class: org.apache.fop.layout.InlineArea and org.apache.fop.layout.inline.Inli neArea [javac] public class ImageArea extends InlineArea { [javac]^ [javac] E: \xml-fop\build\src\org\apache\fop\render\awt\AWTRenderer.java:26: Package org.apache.batik.swing.svg not found in import. [javac] import org.apache.batik.swing.svg.*; [javac]^ [javac] E: \xml-fop\build\src\org\apache\fop\render\awt\AWTRenderer.java:27: Package org.apache.batik.swing.gvt not found in import. [javac] import org.apache.batik.swing.gvt.*; [javac]^ Terminate batch job (Y/N)? y I assume I'm doing something dumb... perhaps the fop folks can help? build codegen seems to succeed, but it is rather too fast, so I fear it's not doing anything. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Gump xalan2 failures
I checked it out fresh... so I dunno. I will try again in a bit. -scott Kelly Campbell To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] camk@channelcc: '[EMAIL PROTECTED]' [EMAIL PROTECTED] point.com Subject: RE: Gump xalan2 failures 06/18/01 03:17 PM Scott, Is it possible you have an older version of FOP checked out and didn't do a build clean? That's about the only thing I can think of that might be causing that ambiguous class error. I will try a clean build using Xalan2 from CVS and see what happens. -Kelly -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 4:38 PM 3) I can't seem to build xml-fop: compile: Compiling the sources [javac] Compiling 133 source files to E:\xml-fop\build\classes [javac] E:\xml-fop\build\src\org\apache\fop\image\ImageArea.java:64: Ambiguo us class: org.apache.fop.layout.InlineArea and org.apache.fop.layout.inline.Inli neArea [javac] public class ImageArea extends InlineArea { [javac]^ [javac] E: \xml-fop\build\src\org\apache\fop\render\awt\AWTRenderer.java:26: Package org.apache.batik.swing.svg not found in import. [javac] import org.apache.batik.swing.svg.*; [javac]^ [javac] E: \xml-fop\build\src\org\apache\fop\render\awt\AWTRenderer.java:27: Package org.apache.batik.swing.gvt not found in import. [javac] import org.apache.batik.swing.gvt.*; [javac]^ Terminate batch job (Y/N)? y I assume I'm doing something dumb... perhaps the fop folks can help? build codegen seems to succeed, but it is rather too fast, so I fear it's not doing anything. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]