convert line height value from pixel to pt
hello, Anyone know how to convert line height value, I need to convert the value from pixel to pt. I try to convert the value from pixel by multiple 0.75 (value * 0.75) , When I run FOP 0.20.0, I found the line height is wrong. So, I not sure how to convert the value from pixel to pt, anyone know how to calculate? Thank you. lpkhoo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problems with PCL Output
Martin Roob wrote: 2. There is no EURO-sign in the PCL Umm... how do I get the Euro-Sign anyway? Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problems with PCL Output
alt-propeller-F13 sorry, it's late -Matt -Original Message- From: Ulrich Mayring [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 1:23 AM To: [EMAIL PROTECTED] Subject: Re: Problems with PCL Output Martin Roob wrote: 2. There is no EURO-sign in the PCL Umm... how do I get the Euro-Sign anyway? Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung - 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: servlet called thrice on IE 4.0
David Frankson wrote: It is a behavior that is unavoidable in IE. I cache the pdf and return it on the second hit. I don't support IE with my fop-apps. IE breaks the HTTP standard on purpose and everyone, who uses it, helps to promote Microsoft HTTP and ultimately the Microsoft Web. Sorry for the political statement, but I think ASF software and software written with the help of ASF software should not circumvent the HTTP standard and introduce some kind of hack just to support IE. Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: font-family default?
Karen Lease wrote: The overall default is the generic family sans-serif. For PDF, that's probably Helvetica. The default size is 12pt. What about this though: font metrics-file=/tmp/fonts/Arialn.xml kerning=yes embed-file=/tmp/fonts/Arialn.ttf font-triplet name=ArialNarrow style=normal weight=normal/ font-triplet name=any style=normal weight=normal/ /font If I don't have the third line, then fop throws an exception that no default font is defined. I was under the impression that I define a default font this way. Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: servlet called thrice on IE 4.0
Savino, Matt C wrote: Thanks for all the ideas. Interstingly, I only get the problem on IE 4.0. not 4.72 an above. I wonder if Weblogic is doing something behind the scenes to mitigate the calls. Also strange is that it doesn't seem to happen all the time. When I get a minute to come up for air I'll sit down and try to troubleshoot the problem. Our application is for a very limited number of end users, and we can pretty much tell them to use IE 4.72 and higher. So I hope I'm ok on this one. I really don't feel like trying to implememnt Microsoft's Active-X solution. Ha, wait till you install 5.0, everything's different there again. Then 5.5 changes everything again. It's useless trying to keep up with Microsoft :) Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[REDESIGN] Proposal: ProblemListener
Hello Karen, Keiron and others interested... I've been using FOP in a specially modified version derived from version 0.15 (CVS), because I had to have some special duplex functionality. Now, I'm in a major redesign of the application and I'm going to do the duplexing stuff differently. That way I'll be able to stick to the standards and can use a more current version of FOP. And that's where I stumbled upon my code that tries (!) to determine if a FOP job should be considered success or failure (for example because of layout problems etc.). Basically what I'd like to have is some kind of ProblemListener (similar to the ErrorListener in JAXP 1.1 (javax.xml.transform.ErrorListener)) which reports (especially) layout problems separated from other errors. In a production system you will want to have better control over what should go through and what not. The logging output is not really suitable for this. A default ProblemListener should probably do the logging of problems. I think I can identify 3 kinds of problems (are there more?): - FO(+SVG?) problem (ex. only one flow per page-sequence permitted) - Layout problem (ex. Sum of fixed column widths 348659 greater than maximum specified IPD 340158, the cryptic ) - environmental problem (IOExceptions etc.) I'd love to hear what you think about this. I'm sorry not to be more of a help right now. I'm really aching to do some things in FOP (especially the PSRenderer and reworking static stuff) but I simply don't have the time. I hope very much to be able to help again starting Feb 2002, maybe sooner. Got to get that big project going first... Cheers, 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]
FOP/Cocoon+Graphics
It would seem that FOP/Cocoon do not represent CMYK tif's, but only RGB's. Does anybody know whether this is correct? Regards, Matthias Dott. Matthias Fischer abc.Mediaservice GmbH Nebelhornstraße 8 86807 Buchloe Tel. (08241) 9686-38 Fax (08241) 9686-26 http://www.abc-media.de e-mail: [EMAIL PROTECTED] ein Unternehmen der abc.Mediengruppe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Line break in FO
fo:block/ Matthias Fischer wrote: How do I generate a line break, such as is generated by BR in HTML, in FO? Matthias Dott. Matthias Fischer abc.Mediaservice GmbH Nebelhornstraße 8 86807 Buchloe Tel. (08241) 9686-38 Fax (08241) 9686-26 http://www.abc-media.de e-mail: [EMAIL PROTECTED] ein Unternehmen der abc.Mediengruppe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Differences between fop.jar and Fop-0.20.2\src
Hi people.I am trying to run FOP with Visual Age.To see how FOP works, i have chosen to use the .java files present in the "src" directory.But some classes are missing : all the classes from the package "org.apache.fop.fo.properties".I've found these classes in the file fop.jar.SoI don't really have a problem but I was wondering why these classes are only available inthe .jar.Thanks in advance for your answer. Jean-Guillaume. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problems with PCL Output (Euro-Sign)
Martin Roob wrote: 2. There is no EURO-sign in the PCL Umm... how do I get the Euro-Sign anyway? That´s quite easy (thanks to unicode) Put a character #x20AC; in your fo-document, for example with the following template rule (transform a euro/-tag to a fo:inline-element: xsl:template name=euro !-- Die Blanks hinter dem Eurozeichen sind da, weil FOP 0.0.15 in Tabellenzellen das Eurozeichen zu schmal rechnet -- fo:inline white-space-collapse=false xsl:text#x20AC; /xsl:text /fo:inline /xsl:template Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 5001] New: - content-width and content-height ignored?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5001. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5001 content-width and content-height ignored? Summary: content-width and content-height ignored? Product: Fop Version: all Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: svg AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I am trying to scale an SVG image, by using external-graphic with the content-width and content-height attributes set. Unfortunately whether I use scale-to-fit (to fit the width/height attributes), or an explicit length, the graphic itself is not scaled. I was not 100% sure that content-width and content-height should scale the image, so I looked at the XHTML to XSL formatting objects example XSLT file at http://www.antennahouse.com/axf11sampleEN.htm. From there it looks like I'm generating the right XSL, and FOP is not scaling the images as it should. I have seen the example of a scaled image in the FOP documentation. It uses an instream-foreign-object SVG, which references the external SVG using svg:image and explicitly set width and height. This does rescale the image, but unfortunately there is no way to have the image size determined from the layout context. For example, XSL sizes such as 80% to show an image with 80% of the width of the current reference port do not work. I am stuck working around this problem by using explicit sizes, and the instream-foreign-object method for rescaling the image. It would be nice if content-width and content-height were honoured. cheers, -- Jamie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 5010] New: - Better error reporting needed
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5010. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5010 Better error reporting needed Summary: Better error reporting needed Product: Fop Version: all Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: general AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The following error [elrond@rivendell archive]$ /usr/local/java/fop1/fop.sh \ -xml admin-faq.xml -xsl \ xsl/fo/docbook.xsl \ -pdf admin-faq.pdf [INFO]: FOP 1.0dev [ERROR]: null is completely meaningless and doesn't help me detect if the problem is with the stylesheet, the document or Fop. Is there anyway to setup a verbose flag or a better and more meaningful error message than just null? I've tried this with both 0.20.2 and 1.0Dev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo/pagination SimplePageMaster.java
klease 01/11/21 14:13:36 Modified:src/org/apache/fop/fo FONode.java FOText.java FObj.java FObjMixed.java src/org/apache/fop/fo/flow Block.java Character.java Inline.java src/org/apache/fop/fo/pagination SimplePageMaster.java Added: src/org/apache/fop/fo AbstractCharIterator.java CharClass.java CharIterator.java InlineCharIterator.java OneCharIterator.java RecursiveCharIterator.java Log: Remove extra whitespace during FO tree construction Revision ChangesPath 1.24 +27 -1 xml-fop/src/org/apache/fop/fo/FONode.java Index: FONode.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FONode.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- FONode.java 2001/11/09 11:32:37 1.23 +++ FONode.java 2001/11/21 22:13:36 1.24 @@ -1,5 +1,5 @@ /* - * $Id: FONode.java,v 1.23 2001/11/09 11:32:37 keiron Exp $ + * $Id: FONode.java,v 1.24 2001/11/21 22:13:36 klease 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. @@ -16,6 +16,9 @@ import org.xml.sax.Attributes; +import java.util.ListIterator; +import java.util.NoSuchElementException; + /** * base class for nodes in the XML tree * @@ -96,6 +99,29 @@ public FONode getParent() { return this.parent; +} + +/** + * Return an iterator over all the children of this FObj. + * @return A ListIterator. + */ +public ListIterator getChildren() { + return null; +} + +/** + * Return an iterator over the object's children starting + * at the pased node. + * @param childNode First node in the iterator + * @return A ListIterator or null if childNode isn't a child of + * this FObj. + */ +public ListIterator getChildren(FONode childNode) { + return null; +} + +public CharIterator charIterator() { + return new OneCharIterator(CharClass.CODE_EOT); } } 1.28 +50 -1 xml-fop/src/org/apache/fop/fo/FOText.java Index: FOText.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FOText.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- FOText.java 2001/11/11 22:09:37 1.27 +++ FOText.java 2001/11/21 22:13:36 1.28 @@ -1,5 +1,5 @@ /* - * $Id: FOText.java,v 1.27 2001/11/11 22:09:37 klease Exp $ + * $Id: FOText.java,v 1.28 2001/11/21 22:13:36 klease 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. @@ -19,6 +19,8 @@ import org.apache.fop.layoutmgr.LayoutManager; import org.apache.fop.layoutmgr.TextLayoutManager; +import java.util.NoSuchElementException; + /** * a text node in the formatting object tree * @@ -89,7 +91,54 @@ } public LayoutManager getLayoutManager() { + // What if nothing left (length=0)? + if (length ca.length) { + char[] tmp = ca; + ca = new char[length]; + System.arraycopy(tmp, 0, ca, 0, length); + } return new TextLayoutManager(this, ca, textInfo); +} + +public CharIterator charIterator() { + return new TextCharIterator(); +} + +private class TextCharIterator extends AbstractCharIterator { + int curIndex = 0; + public boolean hasNext() { + return (curIndex length); + } + + public char nextChar() { + if (curIndex length) { + // Just a char class? Don't actually care about the value! + return ca[curIndex++]; + } + else throw new NoSuchElementException(); + } + + public void remove() { + if (curIndex0 curIndex length) { + // copy from curIndex to end to curIndex-1 + System.arraycopy(ca, curIndex, ca, curIndex-1, + length-curIndex); + length--; + curIndex--; + } + else if (curIndex == length) { + curIndex = --length; + } + } + + + public void replaceChar(char c) { + if (curIndex0 curIndex = length) { + ca[curIndex-1]=c; + } + } + + } } 1.27 +20 -2 xml-fop/src/org/apache/fop/fo/FObj.java Index: FObj.java
cvs commit: xml-fop/src/codegen foproperties.xml
klease 01/11/21 14:15:15 Modified:src/codegen foproperties.xml Log: Add white-space-treatment and linefeed-treatment Revision ChangesPath 1.27 +17 -4 xml-fop/src/codegen/foproperties.xml Index: foproperties.xml === RCS file: /home/cvs/xml-fop/src/codegen/foproperties.xml,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- foproperties.xml 2001/11/09 11:42:12 1.26 +++ foproperties.xml 2001/11/21 22:15:15 1.27 @@ -1144,7 +1144,13 @@ property namelinefeed-treatment/name inheritedtrue/inherited -datatypeToBeImplemented/datatype +datatypeEnum/datatype + enumeration +value const=IGNOREignore/value +value const=PRESERVEpreserve/value +value const=TREAT_AS_SPACEtreat-as-space/value +value const=TREAT_AS_ZERO_WIDTH_SPACEtreat-as-zero-width-space/value + /enumeration defaulttreat-as-space/default /property property @@ -2151,10 +2157,17 @@ defaultbaseline/default /property property -namewhite-space/name +namewhite-space-treatment/name inheritedtrue/inherited -datatypeToBeImplemented/datatype -defaultnormal/default +datatypeEnum/datatype + enumeration +value const=IGNOREignore/value +value const=PRESERVEpreserve/value +value const=IGNORE_IF_BEFORE_LINEFEEDignore-if-before-linefeed/value +value const=IGNORE_IF_AFTER_LINEFEEDignore-if-after-linefeed/value +value const=IGNORE_IF_SURROUNDING_LINEFEEDignore-if-surrounding-linefeed/value + /enumeration +defaultignore-if-surrounding-linefeed/default /property property namexml:lang/name - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]