Compiling Fop in MS vm
Hi all, I wrapped Fop into a com component. I succeded to compile but when I want to run it i get the error : java.lang.NoSuchMethodError : java/awt/image/ColorModel : Methed hasAlpha()Z not found. I downloaded the latest microsoft virtual machine 3802 but the problem still exist. When I looked into msvm effectively that method does not exist but exists in sun's package rt.jar of the jdk1.3.1 I replaced the msvm's ColorModel.class by sun's class the problem does not exist anymore but the output of the application is not consitent. I think I must recompile Fop I microsoft virtual machine to be able to wrap it with a com component. Am I right? is it possible to recomplie it? can any one help? with regards, Adel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6676] New: - external-graphics does not work
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=6676. 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=6676 external-graphics does not work Summary: external-graphics does not work Product: Fop Version: 0.20.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Blocker Priority: Other Component: images AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] in the version 0.20.3rc we have used external graphics like this: fo:external-graphic content-height=auto content-width=auto height=auto width=auto src=figures/Model-DMS_cad.png/ the fo file is stored in the directory c:/temp the image file exists In the version 0.20.3rc2 it does not work: [ERROR]: Error while creating area : Error creating FopImage object (Error creat ing FopImage object (file:/E:/temp/analyzy/wf/figures/WF-Administrace_ucd.png) : org.apache.fop.image.JimiImage - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tool for generating bar graphs with Java
Sergei Timofejev wrote: KavaChart http://www.aoindustries.com/docs/javachart/api/chart.package.html Or PopChart. http://www.corda.com. Its very quick, and produces svg, flash, and gif graphs. Its a breeze to set up, and accessibile via http or direct api. Cheers James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: [PROPOSAL] linebreak
[EMAIL PROTECTED] (ewitness - Ben Fowler) wrote: [snip] I don't mind admitting that as an outsider to the XML standard, this looks like a bad, even a really bad, idea. My reading of your commentary is Whitespace is sometimes respected, and only a langauge lawyer can tell you when. Well, in some sense you are right, there are a lot of really bad ideas hidden in this area. However, you have to see this in context. I most certainly am looking at it in context. I was trying to do something simple and intuitive and it turned out gnarly and difficult. XML is meant to build on other things such as SGML, DSSSL and HTML by avoiding their mistakes. A *real* typesetter doesn't care about whitespace and line feeds, he thinks in paragraphs and columns and pages of flowing text, with various indentations and margins and such. Exactly so, and he thinks of leading and line height, and he thinks of paragraphs with 'space before' and 'space after'. I am prepared to argue that FO is a 'real' typesetter here, and should 'think' the same way. TeX was practically written to support this view, and this is the default how FO processors work. Quoting from the XML-dev list, a gentleman wanted to play space cadets and we got unix, another gentleman wanted to distribute his phone list and we got the WW web. Pretty much every worthwhile advance in the computer field has come from one person with a problem to solve. TeX came about because Professor Knuth URL: http://www-cs-faculty.stanford.edu/~knuth/ knew that computers could aid typesetting: it was written with one practical aim, rather than supporting a view. I don't see how you can argue that because TeX has \newline and \par it follows that FO should not have a semantic br / or forced line-break. The problem: not everybody is a typesetter, many people don't even know about how to set indents and hanging indents and margins and this stuff, but they have a space and an enter key sitting squarely on their keyboard. I may have misread you, but I think that you have intertwined two, possibly three things. 1. Not everybody is a typesetter ... Exactly, this is why there is a division of skill or labour. Authors write and typesetters mark up and set text. This is TeX 101, exempli gratia URL: http://www.ideography.co.uk/library/seybold/WYS_intro.html , and URL: http://www.ecn.wfu.edu/~cottrell/wp.html The author of a text should, at least in the first instance, concentrate entirely on the first of these sets of tasks. That is the author's business. Adam Smith famously pointed out the great benefits that flow from the division of labor. Composition and logical structuring of text is the author's specific contribution to the production of a printed text. Typesetting is the typesetter's business. This division of labour was of course fulfilled in the traditional production of books and articles in the pre-computer age. The author wrote, and indicated to the publisher the logical structure of the text by means of various annotations. The typesetter translated the author's text into a printed document, implementing the author's logical design in a concrete typographical design. One only has to imagine, say, Jane Austen wondering in what font to put the chapter headings of Pride and Prejudice to see how ridiculous the notion is. Jane Austen was a great writer; she was not a typesetter. You may be thinking this is beside the point. Jane Austen's writing was publishable; professional typesetters were interested in laying it out and printing it. You and I are not so lucky; if we want a printed article we will have to do it ourselves (and besides, we want it done much faster than via traditional typesetting). Well, yes and no. We will in a sense have to do it ourselves (on our own computers), but we have a lot of help at our disposal. In particular we have a professional-quality typesetting program available. This program (or set of programs) will in effect do for us, for free and in a few seconds or fractions of a second, the job that traditional typesetters did for Shakespeare, Jane Austen, Sir Walter Scott and all the rest. We just have to supply the program with a suitably marked-up text, as the traditional author did. I am suggesting, therefore, that should be two distinct ``moments'' in the production of a printed text using a computer. First one types one's text and gets its logical structuration right, indicating this structuration in the text via simple annotations. This is accomplished using a text editor, a piece of software not to be confused with a word processor. (I will explain this distinction more fully below.) Then one ``hands
Re: Compiling Fop in MS vm
Hi Adel. If you are using a version of FOP later than 0.18 - you component won't work. The problem is that the MS VM 3802 only supports jdk 1.1.8 - FOP after 0.18 use later JDK versions. Hopes this helps you. Alternative you can use FOP 0.18.. Claus Nielsen |+ || Adel BEN SIK | || ALI | || adelbensik@ly| || cos.com | ||| || 26-02-2002| || 10:25 | || Please respond| || to fop-dev| ||| |+ ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Compiling Fop in MS vm | ---| Hi all, I wrapped Fop into a com component. I succeded to compile but when I want to run it i get the error : java.lang.NoSuchMethodError : java/awt/image/ColorModel : Methed hasAlpha ()Z not found. I downloaded the latest microsoft virtual machine 3802 but the problem still exist. When I looked into msvm effectively that method does not exist but exists in sun's package rt.jar of the jdk1.3.1 I replaced the msvm's ColorModel.class by sun's class the problem does not exist anymore but the output of the application is not consitent. I think I must recompile Fop I microsoft virtual machine to be able to wrap it with a com component. Am I right? is it possible to recomplie it? can any one help? with regards, Adel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
pls help...status on working in non ASCII environment, PDF not formatting correctly
Hi all, We're currently trying to get our FOP to work on a mainframe using EBCDIC, but when the PDF gets generated, the formatting goes horribly wrong.. i've read the mailing list and i see it has been addressed before as a bug, does anyone know the status of this bug? PLEASE help This message contains information intended solely for the addressee, which is confidential or private in nature and subject to legal privilege. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message or any file attached to this message. Any such unauthorised use is prohibited and may be unlawful. If you have received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter delete the original message from your machine. Furthermore, the information contained in this message, and any attachments thereto, is for information purposes only and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of Dimension Data (South Africa) (Proprietary) Limited or is subsidiaries and associated companies (Dimension Data). Dimension Data therefore does not accept liability for any claims, loss or damages of whatsoever nature, arising as a result of the reliance on such information by anyone. Whilst all reasonable steps are taken to ensure the accuracy and integrity of information transmitted electronically and to preserve the confidentiality thereof, Dimension Data accepts no liability or responsibility whatsoever if information or data is, for whatsoever reason, incorrect, corrupted or does not reach its intended destination. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem upgrading from jdk 1.2 to jdk 1.3.1
Hi!. We have compiled ourclasses with jdk 1.2, and they work OK. The problem is that nowwe have to compile them with jdk 1.3.1. We can compile themOK, but they don't work correctly. We get the following error: "arrayIndexOutOfBounds". We don't know if there is a problem about upgrading code from jdk 1.2 to jdk 1.3.1. We haveused FOP 1.20.0. Thank you!.
cvs commit: xml-fop/src/org/apache/fop/svg SVGElement.java SVGArea.java
keiron 02/02/26 04:43:10 Modified:src/org/apache/fop/fo FONode.java XMLObj.java src/org/apache/fop/fo/flow ExternalGraphic.java InstreamForeignObject.java src/org/apache/fop/render AbstractRenderer.java PrintRenderer.java Renderer.java src/org/apache/fop/render/mif MIFRenderer.java src/org/apache/fop/render/pcl PCLRenderer.java src/org/apache/fop/render/pdf PDFRenderer.java src/org/apache/fop/render/ps PSRenderer.java src/org/apache/fop/render/svg SVGRenderer.java src/org/apache/fop/render/txt TXTRenderer.java src/org/apache/fop/render/xml XMLRenderer.java src/org/apache/fop/svg SVGElement.java Removed: src/org/apache/fop/image ImageArea.java src/org/apache/fop/svg SVGArea.java Log: remove SVGArea and ImageArea, no longer needed Revision ChangesPath 1.26 +3 -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.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- FONode.java 25 Feb 2002 21:28:01 - 1.25 +++ FONode.java 26 Feb 2002 12:43:09 - 1.26 @@ -1,5 +1,5 @@ /* - * $Id: FONode.java,v 1.25 2002/02/25 21:28:01 klease Exp $ + * $Id: FONode.java,v 1.26 2002/02/26 12:43:09 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. @@ -25,6 +25,7 @@ * */ abstract public class FONode { +protected FOUserAgent userAgent; protected FONode parent; protected String name; @@ -43,6 +44,7 @@ } public void setUserAgent(FOUserAgent ua) { +userAgent = ua; } public void setStreamRenderer(StreamRenderer st) { 1.8 +6 -1 xml-fop/src/org/apache/fop/fo/XMLObj.java Index: XMLObj.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/XMLObj.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- XMLObj.java 22 Nov 2001 07:11:39 - 1.7 +++ XMLObj.java 26 Feb 2002 12:43:09 - 1.8 @@ -1,5 +1,5 @@ /* - * $Id: XMLObj.java,v 1.7 2001/11/22 07:11:39 keiron Exp $ + * $Id: XMLObj.java,v 1.8 2002/02/26 12:43:09 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. @@ -20,6 +20,7 @@ import javax.xml.parsers.DocumentBuilderFactory; import java.util.*; +import java.awt.geom.Point2D; /** * Generic XML object. @@ -53,6 +54,10 @@ public Document getDocument() { return doc; +} + +public Point2D getDimension(Point2D view) { + return null; } public abstract String getNameSpace(); 1.18 +4 -3 xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java Index: ExternalGraphic.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- ExternalGraphic.java 21 Feb 2002 09:54:26 - 1.17 +++ ExternalGraphic.java 26 Feb 2002 12:43:09 - 1.18 @@ -1,5 +1,5 @@ /* - * $Id: ExternalGraphic.java,v 1.17 2002/02/21 09:54:26 keiron Exp $ + * $Id: ExternalGraphic.java,v 1.18 2002/02/26 12:43:09 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. @@ -37,8 +37,6 @@ int width; String id; -ImageArea imageArea; - public ExternalGraphic(FONode parent) { super(parent); } @@ -50,6 +48,9 @@ } protected InlineArea getInlineArea() { +if(url == null) { +return null; +} url = ImageFactory.getURL(url); // if we need to load this image to get its size // FopImage fopimage = ImageFactory.getImage(url, userAgent); 1.21 +5 -1 xml-fop/src/org/apache/fop/fo/flow/InstreamForeignObject.java Index: InstreamForeignObject.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/InstreamForeignObject.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u
RE: Problem upgrading from jdk 1.2 to jdk 1.3.1
No, I have been using jdk 1.3.1, then 1.3.1_01, and currently 1.3.1_02 since day one when I got involved with fop. (since about March/April 2002?). Had never used jdk 1.2 with fop in fact. But the last one I compiled was the 0.20.x cvs maintainence tree on 6th Jan 2002. Haven't touched fop for a month. -Original Message- From: Soraya Camarero [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 11:54 To: fop-cvs Subject: Problem upgrading from jdk 1.2 to jdk 1.3.1 Hi!. We have compiled ourclasses with jdk 1.2, and they work OK. The problem is that now we have to compile them with jdk 1.3.1. We can compile them OK, but they don't work correctly. We get the following error: arrayIndexOutOfBounds. We don't know if there is a problem about upgrading code from jdk 1.2 to jdk 1.3.1. We have used FOP 1.20.0. Thank you!. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compiling Fop in MS vm
Not entirely true -- osx supports any java you care to put on it -- I'm currently running 1.3. jw [EMAIL PROTECTED] wrote: Hi Adel. If you are using a version of FOP later than 0.18 - you component won't work. The problem is that the MS VM 3802 only supports jdk 1.1.8 - FOP after 0.18 use later JDK versions. Hopes this helps you. Alternative you can use FOP 0.18.. Claus Nielsen |+ || Adel BEN SIK | || ALI | || adelbensik@ly| || cos.com | ||| || 26-02-2002| || 10:25 | || Please respond| || to fop-dev| ||| |+ ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Compiling Fop in MS vm | ---| Hi all, I wrapped Fop into a com component. I succeded to compile but when I want to run it i get the error : java.lang.NoSuchMethodError : java/awt/image/ColorModel : Methed hasAlpha ()Z not found. I downloaded the latest microsoft virtual machine 3802 but the problem still exist. When I looked into msvm effectively that method does not exist but exists in sun's package rt.jar of the jdk1.3.1 I replaced the msvm's ColorModel.class by sun's class the problem does not exist anymore but the output of the application is not consitent. I think I must recompile Fop I microsoft virtual machine to be able to wrap it with a com component. Am I right? is it possible to recomplie it? can any one help? with regards, Adel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: problem building on macosx
It worked just fine for me from the very start. Are you sure you have all the supporting jars properly sourced through the classpath? Have you tried running it from the latest release jar file first before doing the build? jw Stephen Bannasch wrote: I'm trying to build Fdop on macosx I grabbed the source from cvs this afternoon and when I build it it stops right away with a SerializeHyphPattern cannot be found error. Help for the clueless will be appreciated. Thanks [bash stephen:~/apache/xml-fop]./build.sh Fop Build System Building with classpath /Library/Java/Home/lib/tools.jar:/Library/Java/Home/lib/classes.zip:lib/ant.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.4.3.jar:lib/xalan-2.2D11.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar Starting Ant... Buildfile: build.xml init-avail: init-filters-xalan2: init: [echo] --- Fop 1.0dev [1999-2002] BUILD FAILED /Users/stephen/apache/xml-fop/build.xml:273: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Compiling Fop in MS vm
Oops. Sorry, responding to wrong message. jw [EMAIL PROTECTED] wrote: Hi Adel. If you are using a version of FOP later than 0.18 - you component won't work. The problem is that the MS VM 3802 only supports jdk 1.1.8 - FOP after 0.18 use later JDK versions. Hopes this helps you. Alternative you can use FOP 0.18.. Claus Nielsen |+ || Adel BEN SIK | || ALI | || adelbensik@ly| || cos.com | ||| || 26-02-2002| || 10:25 | || Please respond| || to fop-dev| ||| |+ ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Compiling Fop in MS vm | ---| Hi all, I wrapped Fop into a com component. I succeded to compile but when I want to run it i get the error : java.lang.NoSuchMethodError : java/awt/image/ColorModel : Methed hasAlpha ()Z not found. I downloaded the latest microsoft virtual machine 3802 but the problem still exist. When I looked into msvm effectively that method does not exist but exists in sun's package rt.jar of the jdk1.3.1 I replaced the msvm's ColorModel.class by sun's class the problem does not exist anymore but the output of the application is not consitent. I think I must recompile Fop I microsoft virtual machine to be able to wrap it with a com component. Am I right? is it possible to recomplie it? can any one help? with regards, Adel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: Compiling Fop in MS vm
Hi Jim. Maybe asking stupid...But what is osx ?? Claus |+- || Jim Wright | || jwright@palgra| || phics.com | || | || 26-02-2002 | || 08:06 | || Please respond | || to fop-dev | || | |+- ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Re: Compiling Fop in MS vm | ---| Not entirely true -- osx supports any java you care to put on it -- I'm currently running 1.3. jw [EMAIL PROTECTED] wrote: Hi Adel. If you are using a version of FOP later than 0.18 - you component won't work. The problem is that the MS VM 3802 only supports jdk 1.1.8 - FOP after 0.18 use later JDK versions. Hopes this helps you. Alternative you can use FOP 0.18.. Claus Nielsen |+ || Adel BEN SIK | || ALI | || adelbensik@ly| || cos.com | ||| || 26-02-2002| || 10:25 | || Please respond| || to fop-dev| ||| |+ ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Compiling Fop in MS vm | ---| Hi all, I wrapped Fop into a com component. I succeded to compile but when I want to run it i get the error : java.lang.NoSuchMethodError : java/awt/image/ColorModel : Methed hasAlpha ()Z not found. I downloaded the latest microsoft virtual machine 3802 but the problem still exist. When I looked into msvm effectively that method does not exist but exists in sun's package rt.jar of the jdk1.3.1 I replaced the msvm's ColorModel.class by sun's class the problem does not exist anymore but the output of the application is not consitent. I think I must recompile Fop I microsoft virtual machine to be able to wrap it with a com component. Am I right? is it possible to recomplie it? can any one help? with regards, Adel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: Compiling Fop in MS vm
Newer macintosh os (10). I was responding to Stephen, but accidentally clicked on your message instead. Sorry about that. jw [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]"> Hi Jim.Maybe asking stupid...But what is osx ??Claus|+-|| Jim Wright ||| jwright@palgra||| phics.com ||| ||| 26-02-2002 ||| 08:06 ||| Please respond ||| to fop-dev ||| ||+- ---| | | | To: [EMAIL PROTECTED]< /a> | | cc: | | Subject: Re: Compiling Fop in MS vm | ---|Not entirely true -- osx supports any java you care to put on it -- I'mcurrently running 1.3.jw[EMAIL PROTECTED] wrote: Hi Adel.If you are using a version of FOP later than 0.18 - you component won'twork. The problem is that the MS VM 3802 only supports jdk 1.1.8 - FOPafter 0.18 use later JDK versions.Hopes this helps you. Alternative you can use FOP 0.18..Claus Nielsen|+|| "Adel BEN SIK ||| ALI" ||| adelbensik@ly||| cos.com |||||| 26-02-2002||| 10:25 ||| Please respond||| to fop-dev|||||+ ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Compiling Fop in MS vm | ---| Hi all,I wrapped Fop into a com component. I succeded to compile but when I wantto run it i get the error :java.lang.NoSuchMethodError : java/awt/image/ColorModel : Methed hasAlpha()Z not found.I downloaded the latest microsoft virtual machine 3802 but the problemstill exist.When I looked into msvm effectively that method does not exist but existsin sun's package rt.jar of the jdk1.3.1I replaced the msvm's ColorModel.class by sun's class the problem does notexist anymore but the output of the application is not consitent.I think I must recompile Fop I microsoft virtual machine to be able to wrap it with a com component. Am I right? is it possible to recomplie it?can any one help?with regards,Adel-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED] -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]
CMYK Images - bug? (Again)
Hi, I need some feedback on this. Is there a bug with external-graphics containing CMYK colors? I have tried several image formats now, and if I save them in RGB-mode they work fine but if I save the same image in CMYK-mode FOP gives following error: Error in XObject : Error while loading image file:/D:/CVS/BC/webApplication/images/tj2.jpg : class java.lang.Exception - Image error (I use Photoshop to save pictures) Cheers Claes Bergsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: [PROPOSAL] linebreak
[EMAIL PROTECTED] (ewitness - Ben Fowler) wrote: [snip] Well, this is drifting off topic for this list... but see the very end of this message. And some remarks anyway: In the example The correct way to express procedure foo(); begin ... would be something like: fo:block fo:blockfoo();/fo:block fo:block margin-left=1em fo:blockbegin/fo:block ... I meant correct way to express the presentational aspects with XSLFO. There was no intention to feed this to a Pascal compiler. The use case was I have some Foo source code and want to include it in my printed manual If you want to have your specific (XML) data presented on a 2D area like paper sheets or a computer monitor screen, you probably have to 1. Assign some presentational semantic to your specific data elements like para or proc or record or author 2. Apply some commonly used concepts like kerning, space justification, word wrapping and such stuff XSL, both T and FO, attempts to make this possible, and XSLFO is the second part: a vocabulary for describing the presentation of stuff on a 2D area, perhaps splitted into a page stream (disregard audible properties, whose inclusion is just plain silly). Depending on your point of view, you can see either of the two steps or both together as the equivalent of typesetting. Which is why I say [RETURN] for end of paragraph - /p, and [SHIFT][RETURN] for end of line - br /; to make the easy way the right way. XSLFO does not assign semantics to FOs beyond what's necessary to get them layed out. It does not have a concept of paragraph, and the concept of line is not necessarily the same as what for example software manual writers or java compilers use. Note that there is no fo:line and no fo:para, just a fo:block, which is *not* a paragraph. Further note that HTML p has paragraph semantics, this means some space before and after by default. Also, in early HTML there was no possibility at all to restrict the, well, lets call it page width. Therefore you could not simply write psome line pnext line in order to get a managable line length, it would result in a line spacing making it unreadable. In FO, you could write fo:block space-before=3pt fo:block space-before=0some line/fo:block fo:block space-before=0next line/fo:block /fo:block if you want to have your content formatted this way. I can't see a need for a br equivalent in FO. Another note: in TeX, semantic markup and presentational aspects are mixed in a sometimes annoying way. LaTeX tried to go as pure semantic as resonable, but, unfortunately, you have sometimes a semantic too special to explicitely define an abstraction for it and therefore describe it by its presentation instead. FO, on the contrary, is as pure presentation as possible, taking only really widely used concepts into account and leave the rest to the first step mentioned at the beginning (no formatting of mathematical formulas in FO, no theorem numbering ...) Conclusion: If you want to write documents, use DocBook, not XSLFO. DocBook btw contains linebreak elements, probably for some reasons already mentioned, and apparently there are no difficulties to map them to FOs. In order to clean up the seemingly contradiction that FO also allows for interpretation of LF characters: If you have already properly marked up text for lines, you can transform it (probably easily) into FO blocks. If you pull in whitespace formatted data from a file or DB or something, you might want to have the FO processor respect the existing formatting rather than to analyze and properly transform the whole stuff. That's a quick hack to fill a gap. I already experienced some times that the result is not as good as it should be and someone still has to wade through the data and convert it to properly marked up (or at least properly structured) data (usually leading to hot debates about what *is* the structure behind the formatting?) Having said all that, FO still lacks stuff, but mostly related to the fact that pagination is a task of the FO processor and not known at the time FOs are generated, like: - elements to express conditional stuff on page breaks in other elements, like continued on next page or continued from previous page - conditions like if this element does not fit the current page, start it on a new page (not decisively solved by keep-together) or if NN percent of this element do not fit onto the current page, start a new page (some generalization of widows/orphans) Can one of the FOP developers comment on how easy/hard such stuff would be to implement as extension elements? Regards J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: CMYK Images - bug? (Again)
i have a prob with *some* jpeg images cause they are replaced by a black rectangle in the pdf doc. Most jpeg shows correctly. How can i verify that my jpegs are not cmyk-ed? Fred. --- [EMAIL PROTECTED] a écrit : Hi, I need some feedback on this. Is there a bug with external-graphics containing CMYK colors? I have tried several image formats now, and if I save them in RGB-mode they work fine but if I save the same image in CMYK-mode FOP gives following error: Error in XObject : Error while loading image file:/D:/CVS/BC/webApplication/images/tj2.jpg : class java.lang.Exception - Image error (I use Photoshop to save pictures) Cheers Claes Bergsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: CMYK Images - bug? (Again)
Well opening them in Photoshop (if you have the possibility) and look at the Image-Mode There youll see which mode the picture is in: RGB, CMYK, Grayscale etc. Claes |-+--- | | fred redf | | | popincourt2000@| | | yahoo.fr | | | | | | 26/02/2002 03:00| | | PM | | | Please respond | | | to fop-dev | | | | |-+--- ---| | | |To: [EMAIL PROTECTED] | |cc: (bcc: Claes Bergsten/NO/TJG) | |Subject: Re: CMYK Images - bug? (Again) | ---| i have a prob with *some* jpeg images cause they are replaced by a black rectangle in the pdf doc. Most jpeg shows correctly. How can i verify that my jpegs are not cmyk-ed? Fred. --- [EMAIL PROTECTED] a écrit : Hi, I need some feedback on this. Is there a bug with external-graphics containing CMYK colors? I have tried several image formats now, and if I save them in RGB-mode they work fine but if I save the same image in CMYK-mode FOP gives following error: Error in XObject : Error while loading image file:/D:/CVS/BC/webApplication/images/tj2.jpg : class java.lang.Exception - Image error (I use Photoshop to save pictures) Cheers Claes Bergsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.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]
Re: CMYK Images - bug? (Again)
Thanks man, but i'm looking for a scriptable solution cause we're working with *big* amounts of content... Thanks anyway Fred. --- [EMAIL PROTECTED] a écrit : Well opening them in Photoshop (if you have the possibility) and look at the Image-Mode There youll see which mode the picture is in: RGB, CMYK, Grayscale etc. Claes |-+--- | | fred redf | | | popincourt2000@| | | yahoo.fr | | | | | | 26/02/2002 03:00| | | PM | | | Please respond | | | to fop-dev | | | | |-+--- ---| | | |To: [EMAIL PROTECTED] | |cc: (bcc: Claes Bergsten/NO/TJG) | |Subject: Re: CMYK Images - bug? (Again) | ---| i have a prob with *some* jpeg images cause they are replaced by a black rectangle in the pdf doc. Most jpeg shows correctly. How can i verify that my jpegs are not cmyk-ed? Fred. --- [EMAIL PROTECTED] a écrit : Hi, I need some feedback on this. Is there a bug with external-graphics containing CMYK colors? I have tried several image formats now, and if I save them in RGB-mode they work fine but if I save the same image in CMYK-mode FOP gives following error: Error in XObject : Error while loading image file:/D:/CVS/BC/webApplication/images/tj2.jpg : class java.lang.Exception - Image error (I use Photoshop to save pictures) Cheers Claes Bergsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.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] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: CMYK Images - bug? (Again)
You should have a look at a JPEG decoder like Sun's JIMI or Sun's JAI (Java Advanced Imaging API). You might find some usefull methods regarding the color model used by a JPEG image file. Wandering around JAI's JPEGImageDecoder, it extends ImageDecoderImpl. There's a method called decodeAsRenderedImage(), which returns a RenderedImage Then you can call getColorModel().getColorSpace().getName() or getType() on this RenderedImage and you should have an int representing the color model (CMYK, RGB, etc...) I havent tested it myself and I'm not an expert in JAI,but I guess it should work. Hope it helps ! Guillaume - Original Message - From: fred redf To: [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 3:07 PM Subject: Re: CMYK Images - bug? (Again) Thanks man, but i'm looking for a scriptable solutioncause we're working with *big* amounts of content...Thanks anywayFred.--- [EMAIL PROTECTED] a écrit : Well opening them in Photoshop (if you have the possibility) and look at the Image-Mode There youll see which mode the picture is in: RGB, CMYK, Grayscale etc. Claes |-+--- | | fred redf | | | popincourt2000@| | | yahoo.fr | | | | | | 26/02/2002 03:00| | | PM | | | Please respond | | | to fop-dev | | | | |-+--- ---| | | | To: [EMAIL PROTECTED] | | cc: (bcc: Claes Bergsten/NO/TJG) | | Subject: Re: CMYK Images - bug? (Again) | ---| i have a prob with *some* jpeg images cause they are replaced by a black rectangle in the pdf doc. Most jpeg shows correctly. How can i verify that my jpegs are not cmyk-ed? Fred.--- [EMAIL PROTECTED] a écrit : Hi, I need some feedback on this. Is there a bug with external-graphics containing CMYK colors? I have tried several image formats now, and if I save them in RGB-mode they work fine but if I save the same image in CMYK-mode FOP gives following error: Error in XObject : Error while loading image file:/D:/CVS/BC/webApplication/images/tj2.jpg : class java.lang.Exception - Image error (I use Photoshop to save pictures) Cheers Claes Bergsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.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] ___Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !Yahoo! Mail : http://fr.mail.yahoo.com-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]
RE: [PROPOSAL] linebreak
[EMAIL PROTECTED] (ewitness - Ben Fowler) wrote: [snip] [snip ] I meant correct way to express the presentational aspects with XSLFO. There was no intention to feed this to a Pascal compiler. The use case was I have some Foo source code and want to include it in my printed manual O.K. I was a bit harsh there, but I was trying to make the point that some blocks in a ideal presentational system, such as comments would flow, but others such as code statements and expressions would not. If you want to have your specific (XML) data presented on a 2D area like paper sheets or a computer monitor screen, you probably have to 1. Assign some presentational semantic to your specific data elements like para or proc or record or author 2. Apply some commonly used concepts like kerning, space justification, word wrapping and such stuff XSL, both T and FO, attempts to make this possible, and XSLFO is the second part: a vocabulary for describing the presentation of stuff on a 2D area, perhaps splitted into a page stream (disregard audible properties, whose inclusion is just plain silly). (divided, or divided up rather than splitted) My gripe is that your (2) above should include kerning, ligatures, justification, bidi, word wrapping, hyphenation, forced line break, rubber space, widow/orphan control, keeps, insert space and such stuff. Depending on your point of view, you can see either of the two steps or both together as the equivalent of typesetting. Which is why I say [RETURN] for end of paragraph - /p, and [SHIFT][RETURN] for end of line - br /; to make the easy way the right way. XSLFO does not assign semantics to FOs beyond what's necessary to get them layed out. It does not have a concept of paragraph, and the concept of line is not necessarily the same as what for example software manual writers or java compilers use. Note that there is no fo:line and no fo:para, just a fo:block, which is *not* a paragraph. (laid out) And from my POV, that is a pity. I do think of a block as a paragraph, and my enter key or ETAG ending a paragraph and inserting the specified vertical space. 'lines' are largely the result of layout engine working with line length against word wrap, hyphenation and forced line break. I don't dispute the practicality of what you describe, I merely question the benfits of it. Further note that HTML p has paragraph semantics, this means some space before and after by default. Also, in early HTML there was no possibility at all to restrict the, well, lets call it page width. Therefore you could not simply write psome line pnext line in order to get a managable line length, it would result in a line spacing making it unreadable. In FO, you could write fo:block space-before=3pt fo:block space-before=0some line/fo:block fo:block space-before=0next line/fo:block /fo:block if you want to have your content formatted this way. I can't see a need for a br equivalent in FO. 'Page width' is set by the user, he or she can set the width of the browser to what suits that person, it is little to do with HTML. If I can use HTML as an example, (which is not in general a good idea), then this fragment H1MacHTTPBR An early web server/H1 really needs the BR, as H1MacHTTP/H1 H1An early web server/H1 is not the same in structure or presentation, and there is no other way (outside of CSS) of getting the required presentation. Obviously FO does not have this problem. Your example is interesting might work for me. The outer blocks represent paragraphs and the inner ones (typically only one) lines. I will try this before posting again. Another note: in TeX, semantic markup and presentational aspects are mixed in a sometimes annoying way. True Conclusion: If you want to write documents, use DocBook, not XSLFO. DocBook btw contains linebreak elements, probably for some reasons already mentioned, and apparently there are no difficulties to map them to FOs. Again I will check that. I was working from a starting point of generating/editing FO by hand. Certinly, I would recommend DocBook for serious authoring. FO is so like WordPerfect codes, that it seems a shame to make it gratuitously non-editable In order to clean up the seemingly contradiction that FO also allows for interpretation of LF characters: If you have already properly marked up text for lines, you can transform it (probably easily) into FO blocks. If you pull in whitespace formatted data from a file or DB or something, you might want to have the FO processor respect the existing formatting rather than to analyze and properly transform the whole stuff. That's a quick hack to fill a gap. I already experienced some times that the result is not as good as it should be and someone still has to wade through the data and convert it to properly marked up (or at least properly structured) data (usually leading to hot debates about what *is* the structure behind the formatting?) Which is also (I
Re: CMYK Images - bug? (Again)
Merci Guillaume, je jette un oeil. --- Guillaume Laforge [EMAIL PROTECTED] a écrit : You should have a look at a JPEG decoder like Sun's JIMI or Sun's JAI (Java Advanced Imaging API). You might find some usefull methods regarding the color model used by a JPEG image file. Wandering around JAI's JPEGImageDecoder, it extends ImageDecoderImpl. There's a method called decodeAsRenderedImage(), which returns a RenderedImage Then you can call getColorModel().getColorSpace().getName() or getType() on this RenderedImage and you should have an int representing the color model (CMYK, RGB, etc...) I havent tested it myself and I'm not an expert in JAI, but I guess it should work. Hope it helps ! Guillaume - Original Message - From: fred redf To: [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 3:07 PM Subject: Re: CMYK Images - bug? (Again) Thanks man, but i'm looking for a scriptable solution cause we're working with *big* amounts of content... Thanks anyway Fred. --- [EMAIL PROTECTED] a écrit : Well opening them in Photoshop (if you have the possibility) and look at the Image-Mode There youll see which mode the picture is in: RGB, CMYK, Grayscale etc. Claes |-+--- | | fred redf | | | popincourt2000@| | | yahoo.fr | | | | | | 26/02/2002 03:00| | | PM | | | Please respond | | | to fop-dev | | | | |-+--- ---| | | |To: [EMAIL PROTECTED] | |cc: (bcc: Claes Bergsten/NO/TJG) | |Subject: Re: CMYK Images - bug? (Again) | ---| i have a prob with *some* jpeg images cause they are replaced by a black rectangle in the pdf doc. Most jpeg shows correctly. How can i verify that my jpegs are not cmyk-ed? Fred. --- [EMAIL PROTECTED] a écrit : Hi, I need some feedback on this. Is there a bug with external-graphics containing CMYK colors? I have tried several image formats now, and if I save them in RGB-mode they work fine but if I save the same image in CMYK-mode FOP gives following error: Error in XObject : Error while loading image file:/D:/CVS/BC/webApplication/images/tj2.jpg : class java.lang.Exception - Image error (I use Photoshop to save pictures) Cheers Claes Bergsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.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] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building on macosx
Hi Jim, I am using the binary distribution of Fop regularly. I have xerces.jar and xalan.jar in /Library/Java/Extensions/ however I have no tools.jar or classes.zip in /Library/Java/Home/lib I have the following in the xml-fop lib dir: $ls lib BSF.license.txt batik.jar classes src CVS bin logkit-1.0.jarstylebook.jar ant.jar bsf.jar org xalan-2.2D11.jar ant.license.txt buildtools.jarreadmexerces-1.4.3.jar which the build process finds and seems to include on the Classpath: Building with classpath /Library/Java/Home/lib/tools.jar:/Library/Java/Home/lib/classes.zip:lib/ant.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.4.3.jar:lib/xalan-2.2D11.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar I have set to following in .bash_profile: export JAVA_HOME=/Library/Java/Home export ANT_HOME=/Users/stephen/devtools/jakarta-ant-1.4.1 The systems stops on the very first taskdef element in the build. taskdef name=serHyph classname=org.apache.fop.tools.anttasks.SerializeHyphPattern/ There are no classes in the anttasks dir for the taskdef to link serHyph to: lib/org/apache/fop/tools/anttasks/ Are these already supposed to be there from an earlier element of the build process? It worked just fine for me from the very start. Are you sure you have all the supporting jars properly sourced through the classpath? Have you tried running it from the latest release jar file first before doing the build? jw Stephen Bannasch wrote: I'm trying to build Fdop on macosx I grabbed the source from cvs this afternoon and when I build it it stops right away with a SerializeHyphPattern cannot be found error. Help for the clueless will be appreciated. Thanks [bash stephen:~/apache/xml-fop]./build.sh Fop Build System Building with classpath /Library/Java/Home/lib/tools.jar:/Library/Java/Home/lib/classes.zip:lib/ant.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.4.3.jar:lib/xalan-2.2D11.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar Starting Ant... Buildfile: build.xml init-avail: init-filters-xalan2: init: [echo] --- Fop 1.0dev [1999-2002] BUILD FAILED /Users/stephen/apache/xml-fop/build.xml:273: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- -s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building on macosx
Stephen Bannasch wrote: [..] The systems stops on the very first taskdef element in the build. taskdef name=serHyph classname=org.apache.fop.tools.anttasks.SerializeHyphPattern/ There are no classes in the anttasks dir for the taskdef to link serHyph to: lib/org/apache/fop/tools/anttasks/ This is in buildtools.jar which seems to be included in your classpath ? But .. [echo] --- Fop 1.0dev [1999-2002] it looks like you have checked out the development branch (which isn't usable at the moment) but you probably want the maintenance branch: checkout -r fop-0_20_2-maintain xml-fop (which should compile) Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Pls help....str.getBytes()
With reference to the following, does anyone know whether one must replace every reference to str.getBytes(), or r there some selected ones we can do only? http://marc.theaimsgroup.com/?l=fop-devm=99587281428987w=2 This message contains information intended solely for the addressee, which is confidential or private in nature and subject to legal privilege. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message or any file attached to this message. Any such unauthorised use is prohibited and may be unlawful. If you have received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter delete the original message from your machine. Furthermore, the information contained in this message, and any attachments thereto, is for information purposes only and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of Dimension Data (South Africa) (Proprietary) Limited or is subsidiaries and associated companies (Dimension Data). Dimension Data therefore does not accept liability for any claims, loss or damages of whatsoever nature, arising as a result of the reliance on such information by anyone. Whilst all reasonable steps are taken to ensure the accuracy and integrity of information transmitted electronically and to preserve the confidentiality thereof, Dimension Data accepts no liability or responsibility whatsoever if information or data is, for whatsoever reason, incorrect, corrupted or does not reach its intended destination. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building on macosx
Thanks for the pointer Christian, I got a new checkout of the maintenence branch: cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout -r fop-0_20_2-maintain xml-fop created buildtools.jar: [bash stephen:~/apache/xml-fop]ant -f buildtools.xml Buildfile: buildtools.xml which claimed success then ran build.sh which again dies on the first taskdef Building with classpath /Library/Java/Home/lib/tools.jar:/Library/Java/Home/lib/classes.zip:lib/ant.jar:lib/ant-1.3-optional.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.2.3.jar:lib/xalan-2.0.0.jar:lib/xalanj1compat.jar:lib/bsf.jar:lib/jimi-1.0.jar:lib/logkit-1.0b4.jar:lib/avalon-framework-4.0.jar Starting Ant... Buildfile: build.xml init-avail: init-filters-xalan1: init-filters-xalan2: init: [echo] --- Fop 0.20.3 [1999-2002] BUILD FAILED /Users/stephen/apache/xml-fop/build.xml:272: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found --- Nested Exception --- java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/MatchingTask at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:290) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.tools.ant.taskdefs.Taskdef.execute(Taskdef.java:111) at org.apache.tools.ant.Target.execute(Target.java:153) at org.apache.tools.ant.Project.runTarget(Project.java:898) at org.apache.tools.ant.Project.executeTarget(Project.java:536) at org.apache.tools.ant.Project.executeTargets(Project.java:510) at org.apache.tools.ant.Main.runBuild(Main.java:421) at org.apache.tools.ant.Main.main(Main.java:149) At 4:56 PM +0100 2/26/02, Christian Geisert wrote: Stephen Bannasch wrote: [..] The systems stops on the very first taskdef element in the build. taskdef name=serHyph classname=org.apache.fop.tools.anttasks.SerializeHyphPattern/ There are no classes in the anttasks dir for the taskdef to link serHyph to: lib/org/apache/fop/tools/anttasks/ This is in buildtools.jar which seems to be included in your classpath ? But .. [echo] --- Fop 1.0dev [1999-2002] it looks like you have checked out the development branch (which isn't usable at the moment) but you probably want the maintenance branch: checkout -r fop-0_20_2-maintain xml-fop (which should compile) Christian -- -s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Using Avalon/Logkit Was: Re: [Understanding] Images [4]
Jeremias Maerki [EMAIL PROTECTED] wrote: By the way: What's the current agreement whether to use Avalon or not? I mean, we're already using LogKit (which is cool). No, it's not cool unless done properly. I don't think users who want only pure FO processing should be forced to use another heavyweigth framework and logkit. I rather imagine something like the following layered architecture: 1. FOP core. Processes XML, either as SAX event stream by supplying a content handler or by utilising the interface javax.xml.transform.Source, into a renderer specific result (probably a java.io.OutputStream, could even apply to a voice renderer :-) Do not rely on any hardcoded external files. Get configuration via a java.util.Properties object or other explicit methods. Use a FOP owned interface like javax.transform.ErrorListener for reporting errors and such, or perhaps even reuse ErrorListener (somewhat odd, though). Use a javax.transform.URIResolver or a similar FOP owned interface for resolving URIs (external graphics source, user font file...). 2. Intermediate layer with a class combining a transformer and a FO processor instance (optional) 3. Class for embedding into the framework. Provides implementations for the URIResolver and the ErrorListener, the latter redirecting to the logging toolkit. May read external, user writable configuration files. Uses framework for passing options and other parametrisations from the outside (command line, servlet request, applet parameter...) It may be an idea to use the factory pattern like javax.transform: abstract classe FOProcessorFactory { // get a new factory. factory may cache default properties for // processors, fonts,... static FOProcessorFactory newInstance(); // create a new processor. a FOProcessor instance is only good // for one run, like a Transformer abstract FOProcessor newFOProcessor(); abstract FOProcessor newFOProcessor(Renderer enumeration); // inherited to generated processors abstract void setErrorListener(ErrorListener); // inherited to generated processors. use also for example for // loading default fonts while creating a new processor instance abstract void setURIResolver(URIResolver); // set attributes, like font file URIs or even compiled font // classes abstract void setAttribute(String name, Object value) // perhaps a few shortcuts for transformations abstract void setTransformation(Source xsl); abstract void setTransformation(Templates); // various get methods omitted :-) } abstract class FOProcessor { abstract void setRenderer(Renderer enumeration); abstract void render(Source,OutputStream); abstract void setErrorListener(ErrorListener); abstract void setURIResolver(URIResolver); abstract void setAttribute(String name, Object value) // shortcuts abstract void setTransformation(Source xsl); abstract void setTransformation(Templates); // extra shortcut (makes no sense for the factory) abstract void setTransformation(Transformer); } If a transformation is set, the Source in render() is the original XML piped through the transformation. I'm not sure whether get/set/ clearParameter for the transformation should be added to FOProcessor, fortunately, no output properties are necessary. There could be all kind of embeddings or standalone applications provided based on this interfaces. AWT rendering may need some more thought, i have no experience how this works. I'm uneasy about creating renderer objects separately, but it may be necessary. Regards J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
I have problem with FOP - running
Hello I take that libraries and put into c:\java\lib, I working witch NT 2000. Please, I have problems with FOP when running and recieved this message Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/Main I don't now this message, please help me. Sorry, my English is very bad. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
fonts
I couldn't get to bugzilla... I've added new fonts to theuserconfig.xml file. /fontsfont metrics-file="maycon.xml" kerning="yes" embed-file="c:\fop\fonts\maycon.ttf" font-triplet name="Mayco" style="normal" weight="normal"//font execute fop C:\Fopfop -xml docs/termprofile.xml -xsl docs/auditprofiletest.xsl -pdf docs/auditprofile.pdf -c conf/userconfig.xml I could not get the font to work, until I copied the fonts/metrics into my C:\FOP folder (or where ever I have the directory set to. ...was C:\FOP at the time). It seems,it doesn't matter what I set the embed-file pathequal to. My fonts are only found in the directory I'm working out of. Any idea? Running on win98... If there is a new URL for bugzilla, please let me know.
question keep-together
I have been away for a while, and haven't been able to read all the mails from the mailinglist. Since my return i answered some questions, but not to much... therefore this might been said before, but that i missed it. I saw there is a new release of FOP (fop-0.20.3rc2-src.tar.gz). I'm using the release fop-0.20.3rc-src.tar.gz now. Is in this new release the keep-together.within-page property implemented (the implimented.html doesn't say so, but i frankly don't know if it's updated). if it is implemented, you guyz wan't me to update the html-docs and send them to you? (less work for you) and if you would like more help, you can allways keep sending me the what's implemented and what not's and i'll update the html anyway and send it to you... thanks Jochen, Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: fonts
did you set the basedir? that migh give problems... try to uncheck it if you set it... Jochen Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Using Avalon/Logkit Was: Re: [Understanding] Images [4]
From: Joerg Pietschmann [EMAIL PROTECTED] Jeremias Maerki [EMAIL PROTECTED] wrote: By the way: What's the current agreement whether to use Avalon or not? I mean, we're already using LogKit (which is cool). No, it's not cool unless done properly. I don't think users who want only pure FO processing should be forced to use another heavyweigth framework and logkit. I've used Avalon framework in many projects, and IMHO it's not heavyweight. Logkit is *very* light and fast, and I would humbly suggest to take a look at the framework/logging classes that shields logging from implementation. In this way any logger can be plugged in without changing code. I rather imagine something like the following layered architecture: 1. FOP core. Processes XML, either as SAX event stream by supplying a content handler or by utilising the interface javax.xml.transform.Source, into a renderer specific result (probably a java.io.OutputStream, could even apply to a voice renderer :-) Do not rely on any hardcoded external files. Get configuration via a java.util.Properties object or other explicit methods. In my experience, using the avalon framework Configuration adds a *lot* of flexibility and is very easy to use. Now it also has writing capability. Using XML, it has a hierarchy. Use a FOP owned interface like javax.transform.ErrorListener for reporting errors and such, or perhaps even reuse ErrorListener (somewhat odd, though). In error reporting there are wo levels: user and developer. The user gets notified by ErrorListener, the developer by logging. The user could also want to put a logger as errorListener. Anyway avalon frameworl logging shields from the logging implementation. Use a javax.transform.URIResolver or a similar FOP owned interface for resolving URIs (external graphics source, user font file...). There is already a tried and tested Avalon Component for this. 2. Intermediate layer with a class combining a transformer and a FO processor instance (optional) 3. Class for embedding into the framework. Provides implementations for the URIResolver and the ErrorListener, the latter redirecting to the logging toolkit. May read external, user writable configuration files. Uses framework for passing options and other parametrisations from the outside (command line, servlet request, applet parameter...) There is already a CLI util class in Avalon. It may be an idea to use the factory pattern like javax.transform: abstract classe FOProcessorFactory { // get a new factory. factory may cache default properties for // processors, fonts,... static FOProcessorFactory newInstance(); // create a new processor. a FOProcessor instance is only good // for one run, like a Transformer abstract FOProcessor newFOProcessor(); abstract FOProcessor newFOProcessor(Renderer enumeration); There are ComponentManagers in Avalon, that handle lifecycle automatically. // inherited to generated processors abstract void setErrorListener(ErrorListener); // inherited to generated processors. use also for example for // loading default fonts while creating a new processor instance abstract void setURIResolver(URIResolver); // set attributes, like font file URIs or even compiled font // classes abstract void setAttribute(String name, Object value) // perhaps a few shortcuts for transformations abstract void setTransformation(Source xsl); abstract void setTransformation(Templates); // various get methods omitted :-) } abstract class FOProcessor { abstract void setRenderer(Renderer enumeration); abstract void render(Source,OutputStream); abstract void setErrorListener(ErrorListener); abstract void setURIResolver(URIResolver); abstract void setAttribute(String name, Object value) // shortcuts abstract void setTransformation(Source xsl); abstract void setTransformation(Templates); // extra shortcut (makes no sense for the factory) abstract void setTransformation(Transformer); } This is basically a definition of an interface of a FOProcessor, the main avalon-style Component for FOP. Using Excalibur ComponentManager, you just need to add a reference in the xml configuration and it gets automatically setup, configured, and managed. If a transformation is set, the Source in render() is the original XML piped through the transformation. I'm not sure whether get/set/ clearParameter for the transformation should be added to FOProcessor, fortunately, no output properties are necessary. If it implements the Parametrizable interface of Avalon, the Parameters get set automatically by Excalibur. Same with Configurable. IMHO, Avalon *really* helps in making a clean class structure and Componentization. I am finding it a bit difficult in getting the grasp of FOP specific stuff, but understand something of Avalon, so I'm very willing to help in this regard. Cheers! Ken -- Nicola Ken Barozzi
DO NOT REPLY [Bug 6691] New: - erros while creating external png image
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=6691. 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=6691 erros while creating external png image Summary: erros while creating external png image Product: Fop Version: 0.20.3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: images AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I downloaded the following binary disrtibution: today: ls -l fop-0.20.3/build/ 1848346 Feb 19 04:22 fop.jar and received this error while processing a docbook xml file: [ERROR]: Error while creating area : Error creating FopImage object (Error creating FopImage object (file:images/png/gs-7-1.png) : org.apache.fop.image.JimiImage If I downlgrade back to this Fop: ls -l Fop-0.20.3rc/build/ 1794398 Jan 19 11:17 fop.jar images are loaded correctly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tool for generating bar graphs with Java
I just saw this in [EMAIL PROTECTED]: http://sourceforge.net/projects/jcharts/ It's LGPL licence Bernard -Original Message- From: Roland [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 16:33 To: [EMAIL PROTECTED] Subject: Tool for generating bar graphs with Java Hello, does anyone here know of a good tool to generate bar graphs, line graphs, pie charts, scatter graphs with Java? Thanks, Roland - 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: I have problem with FOP - running
ant.jar is missing in your classpath. Fred. --- Carlos Daniel Schafer [EMAIL PROTECTED] a écrit : Hello I take that libraries and put into c:\java\lib, I working witch NT 2000. Please, I have problems with FOP when running and recieved this message Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/Main I don't now this message, please help me. Sorry, my English is very bad. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building on macosx
Stephen Bannasch wrote: created buildtools.jar: [bash stephen:~/apache/xml-fop]ant -f buildtools.xml Buildfile: buildtools.xml You shouldn't have to build it yourself, it's included in lib/ which claimed success then ran build.sh which again dies on the first taskdef What happens if you remove hyphenation from this line target name=package depends=compile,hyphenation in build.xml? Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]