RE: Anyone could help with PRINT or AWT PREVIEW ?
I posted a set of classes a while back which are a (still broken) rewrite of the AWTViewer, designed to give a simple interface to FOP from a gui app: it returns the preview window as a JPanel so you can stick it wherever you want in your app (JFrame, JInternalFrame, JCombo, whatever...), and also allows you to print() and save() direct either from the app or from the preview JPanel. There's a demo class in the zip file which should explain pretty well how to use it. Be aware: the print() method is still broken, and you'll need FOP 0.20.1 -Original Message- From: IvanLatysh [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 7:43 PM To: [EMAIL PROTECTED] Subject: Anyone could help with PRINT or AWT PREVIEW ? Anyone using FOP with application ? Please help. I have got problem with showing AWT preview. Sincerely yours, Ivan Latysh. [EMAIL PROTECTED] http://ivan.yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] org.zip Description: Zip compressed data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
fo:table question
Hello, just a small problem about fo:table. I want create a table with many columns and the total amount width of the column will be bigger than the width of the page... How do I have to do to tell fop that i want a new page if the total amount of the column width is bigger than the page width If someone has an example, thanks in advance Steve Favez [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: column color
Hey Maneshi ! I had the same problem ! Just put some thing in the cell my be this can help - k. xsl:template match=td fo:table-cell fo:block text-align=center xsl:choose xsl:when test = .='' fo:table border-width=0.1mm border-style=solid background-color={@bgcolor} color={@bgcolor} fo:table-column column-width=30mm / fo:table-body fo:table-row fo:table-cell fo:block space-before.optimum=3pt _ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:when xsl:otherwise fo:table border-width=0.1mm border-style=solid background-color={@bgcolor} color={@font-color} fo:table-column column-width=30mm / fo:table-body fo:table-row fo:table-cell fo:block space-before.optimum=3pt xsl:apply-templates/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:otherwise /xsl:choose /fo:block /fo:table-cell /xsl:template -Ursprungliche Nachricht- Von: Maneshi Tuli [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 11. Dezember 2001 00:13 An: [EMAIL PROTECTED] Betreff: column color Hi , I am not able to display the column color if column value is null my code is fo:table-cell number-columns-spanned=5 fo:block font-size=12px color=#33 font-family=serif text-align=center background-color=#CC vertical-align=bottom font-weight=bold fo:external-graphic src=file:C:/XMLWork/HTML/InSight/images/common/spacer.gif/ /fo:block /fo:table-cell fo:table-cell number-columns-spanned=5 fo:block font-size=12px color=#33 font-family=serif text-align=center background-color=#CC vertical-align=bottom font-weight=boldAsset Class Composition %/fo:block /fo:table-cell It displays the color for 2nd block , but not for first one . Plz help me , how can i get the color for 1st block Maneshi Tuli 212-454-1646 (O) 732 -882-0353(H) -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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: fo:table question
Steve, what you are willing to do must be done in XSLT. if you know the width of each column, then you will have no trouble writing a test in your xslt stylesheet that will generate a new continuing table with the remaining columns. You mentioned a new page, take care, what if your table is on more than one page already ? anyway, XSLT offers you arithmetic to test your case, and the template rules to generate your table(s). I do not have sample, sorry. Hope this helps Cyril Rognon At 10:33 11/12/2001 +0100, you wrote: Hello, just a small problem about fo:table. I want create a table with many columns and the total amount width of the column will be bigger than the width of the page... How do I have to do to tell fop that i want a new page if the total amount of the column width is bigger than the page width If someone has an example, thanks in advance Steve Favez [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Flow of tables please help PLEEEAAASSEE
Howzit guys... I really need some advice here please guys...PLEAAASSSE What i have is this.. I have 3 tables amongst other items on my page. The rest of the stuff on my page is 100%, its just these three tables. table table table At the moment theyr'e being stacked under each other. what i need is for them to be placed next to each other from left to right. So what i want is this table table table any ideas?? thanx ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Flow of tables please help PLEEEAAASSEE
Put the tables in a table. --- Paul Smith I have 3 tables amongst other items on my page. The rest of the stuff on my page is 100%, its just these three tables. table table table At the moment theyr'e being stacked under each other. what i need is for them to be placed next to each other from left to right. So what i want is this table table table *** DISCLAIMER: The information contained in this email is confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the information in it by any other person is not authorised. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Flow of tables please help PLEEEAAASSEE
How ? Claus Smith, Paul paul_smith@uk To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] .appl.net cc: Subject: RE: Flow of tables please help PLEEEAAASSEE 11-12-2001 12:17 Please respond to fop-dev Put the tables in a table. --- Paul Smith I have 3 tables amongst other items on my page. The rest of the stuff on my page is 100%, its just these three tables. table table table At the moment theyr'e being stacked under each other. what i need is for them to be placed next to each other from left to right. So what i want is this table table table *** DISCLAIMER: The information contained in this email is confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the information in it by any other person is not authorised. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Handling formatter messages
Title: Handling formatter messages Hello, I'm wondering how formatter messages can be handled with FOP. In JAXP, a listener pattern is used for handling messages and errors occuring while processing, like javax.xml.transformer.Transformer transformer = tFactory.newTransformer(source); transformer.setErrorListener(myListener); Using FOP, the only way of receiving a little bit more information than a single exception (usually a fatal error) is using an org.apache.log.Logger class (or subclass). The advantage of JAXP architecture is, that the listener are called with a TransformerException. This class defines beside the message string also the position, which caused the message. BTW, another disadvantage of the Logger class is that it's not an interface... The XALAN API defines a debugging interface. Is there someting I haven't seen yet in the FOP API? Jens Jens von Pilgrim 4flow AG Berlin, Germany
RE: Flow of tables please help PLEEEAAASSEE
How ? Something along the lines of: fo:table fo:table-column column-width=100.0pt/ fo:table-column column-width=100.0pt/ fo:table-body fo:table-row fo:table-cell fo:table fo:table-column column-width=100.0pt/ fo:table-body fo:table-row fo:table-cell fo:blockOne/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:table-cell fo:table-cell fo:table fo:table-column column-width=100pt/ fo:table-body fo:table-row fo:table-cell fo:blockTwo/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:table-cell /fo:table-row /fo:table-body /fo:table Hope that helps --- Paul Smith *** DISCLAIMER: The information contained in this email is confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the information in it by any other person is not authorised. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Flow of tables please help PLEEEAAASSEE
Title: RE: Flow of tables please help PLEEEAAASSEE Hi, putting tables in a table... How? Never programmed HTML? BTW: column widths using percantages is not implemented yet... is it comming with the next version or is it already in the CVS? Jens
RE: Flow of tables please help PLEEEAAASSEE
thanx for all the help, thanx i got it right at last!! yip i really appreciate it thanx again -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 11:57 AM To: [EMAIL PROTECTED] Subject: Flow of tables please help PLEEEAAASSEE Howzit guys... I really need some advice here please guys...PLEAAASSSE What i have is this.. I have 3 tables amongst other items on my page. The rest of the stuff on my page is 100%, its just these three tables. table table table At the moment theyr'e being stacked under each other. what i need is for them to be placed next to each other from left to right. So what i want is this table table table any ideas?? thanx ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.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]
cvs commit: xml-fop/src/org/apache/fop/pdf PDFCIDSystemInfo.java PDFWArray.java
keiron 01/12/11 04:11:00 Modified:src/org/apache/fop/pdf PDFCIDSystemInfo.java PDFWArray.java Log: removed some bad static things Revision ChangesPath 1.3 +2 -2 xml-fop/src/org/apache/fop/pdf/PDFCIDSystemInfo.java Index: PDFCIDSystemInfo.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/pdf/PDFCIDSystemInfo.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PDFCIDSystemInfo.java 2001/07/30 20:29:29 1.2 +++ PDFCIDSystemInfo.java 2001/12/11 12:11:00 1.3 @@ -1,5 +1,5 @@ /* - * $Id: PDFCIDSystemInfo.java,v 1.2 2001/07/30 20:29:29 tore Exp $ + * $Id: PDFCIDSystemInfo.java,v 1.3 2001/12/11 12:11:00 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. @@ -15,7 +15,6 @@ * this small object is used in the CID fonts and in the CMaps. */ public class PDFCIDSystemInfo extends PDFObject { -private static final StringBuffer p = new StringBuffer(); protected String registry; protected String ordering; protected int supplement; @@ -40,6 +39,7 @@ } public String toPDFString() { +StringBuffer p = new StringBuffer(); p.setLength(0); p.append(/CIDSystemInfo /Registry (); p.append(registry); 1.6 +1 -2 xml-fop/src/org/apache/fop/pdf/PDFWArray.java Index: PDFWArray.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/pdf/PDFWArray.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- PDFWArray.java2001/11/02 11:06:07 1.5 +++ PDFWArray.java2001/12/11 12:11:00 1.6 @@ -1,5 +1,5 @@ /* - * $Id: PDFWArray.java,v 1.5 2001/11/02 11:06:07 keiron Exp $ + * $Id: PDFWArray.java,v 1.6 2001/12/11 12:11:00 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. @@ -90,7 +90,6 @@ * inner class for entries in the form c [w ...] */ private static class Entry { -private static final StringBuffer p = new StringBuffer(); private int start; private int[] metrics; public Entry(int s, int[] m) { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo/pagination ConditionalPageMasterReference.java
keiron 01/12/11 04:26:15 Modified:src/org/apache/fop/fo/pagination ConditionalPageMasterReference.java Log: updated master-name to master-reference Revision ChangesPath 1.9 +3 -3 xml-fop/src/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java Index: ConditionalPageMasterReference.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- ConditionalPageMasterReference.java 2001/11/15 12:40:31 1.8 +++ ConditionalPageMasterReference.java 2001/12/11 12:26:15 1.9 @@ -1,5 +1,5 @@ /* - * $Id: ConditionalPageMasterReference.java,v 1.8 2001/11/15 12:40:31 keiron Exp $ + * $Id: ConditionalPageMasterReference.java,v 1.9 2001/12/11 12:26:15 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,8 @@ public void handleAttrs(Attributes attlist) throws FOPException { super.handleAttrs(attlist); -if (getProperty(master-name) != null) { -setMasterName(getProperty(master-name).getString()); +if (getProperty(master-reference) != null) { +setMasterName(getProperty(master-reference).getString()); } validateParent(parent); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Handling formatter messages
Title: RE: Handling formatter messages Corrections: I examined the logkit API: 1) subclasses of org.apache.log.Logger are nonsense... 2) instead: implement interface LogTarget OK, some architecture questions are solved... but not the main issue. Jens Jens von Pilgrim 4flow AG Berlin, Germany
number of pages generated
Hi. Is there a way to get the number of pages generated after driver.run() ? Laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: number of pages generated
Yes, with the FormattingResults proposal I submitted on 2001-12-04 this would be possible. I'm still hoping one of the committers might consider integrating it in FOP. On 11 Dec 2001 13:34:27 +0100 Laurent Vaills wrote: Is there a way to get the number of pages generated after driver.run() ? Cheers, OUTLINE AG Jeremias Märki mailto:[EMAIL PROTECTED] 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]
inline tables?
Hi, are tables as inline objects allowed? Like this e.g. bla bla fo:inlinefo:table.../fo:table/fo:inline When yes, does this work with the fop? Thank you, Stephan Michels. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: number of pages generated
I like the idea I was also wondering if theres a way to get notified of certain events happening, like the completion of a page, number of pages calculated, or similar, via some callback mechanism This way I could keep more of an eye on the progress of a rendering job. Cheers James Jeremias Maerki wrote: Yes, with the FormattingResults proposal I submitted on 2001-12-04 this would be possible. I'm still hoping one of the committers might consider integrating it in FOP. On 11 Dec 2001 13:34:27 +0100 Laurent Vaills wrote: Is there a way to get the number of pages generated after driver.run() ? Cheers, OUTLINE AG Jeremias Märki mailto:[EMAIL PROTECTED] 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: FOP performance on Win98/JRE 1.3.1
The performance of FOP needs quite a bit of work. At least thats the impression I get from many people round here. However, its really new software ( hanve version 0.20 I would imagine ), and I think that that probably the coders are working on getting the functionality there before spending time concentrating on the performance. One thing you will find is that the first run through the code takes by far the longest time. The JVM needs to load all the relevant classes, initialise them, and that kind of thing. Once this has been done, the JVM (if you have it switched on) will potentially compile some of the code, rather than interpret the java byte code. This can improve the speed significantly. The other thing you need to check is for your JVM memory settings. If you use the default, then FOP may cause the free heap space to go dangerously low, increasing the frequency of full GC runs. These are best avoided, as all threads are suspended during the GC phase. Adding memory to the heap can cause these problems to diminish, (perhaps adding up to 256m, using the -Xms and -Xmx flags ), but then you may find that full GCs take too long ...You may also want to take a look at the Eden heap space settings, these could significantly increase speed if slowdown is due to memory GC issues, as a result of short-lived objects. Of course if you are adding memory to the JVM heap, then you should also make sure that you have anough physical memory, or this may cause VM paging at the OS level. I would say 256 or 512M as minimum requirement. When running on UNIX i have seen a significant amount of kernel CPU usage, which i cannot really account for In short, then. If you want FOP to run more quickly, render more than one document during the JVM lifetime. The first rendering will be slow, but subsequent ones much more speedy. And add memory. Hope this helps James Lukas Pietsch wrote: Hello, (I asked this question on the [EMAIL PROTECTED] list first, but was told to better go here with it.) I'm new to xsl-fo and related matters and I've just managed to set up FOP (0.20.2) and make a few test runs. I'm now wondering a bit about its performance. Parsing a single test xml document (a docbook chapter) with just a few words in it, transforming it with the docbook xsl stylesheets and outputting to pdf takes more than 40 seconds. It's fifteen seconds before I even get the debug line ([DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser). Afterwards, it says [DEBUG]: Avg render time: 10600ms/page. Is this considered normal? It makes me wonder if my FOP installation (or indeed my Java installation) is set up correctly. Cyril Rognon on the www-xsl-fo list confirmed he found it rather too slow. This is on Windows 98, with a 500MHz AMD-K6 processor and 128 MB memory, using FOP 0.20.2 (sorry, I wrongly said 0.20.0 in the earlier mail) and the Java JRE 1.3.1. What could I do to diagnose the problem better? Thanks for any pointers, Lukas Pietsch - 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: FOP performance on Win98/JRE 1.3.1
Hello, James! You wrote to [EMAIL PROTECTED] on Tue, 11 Dec 2001 17:28:25 +: JR The performance of FOP needs quite a bit of work. At least thats the JR impression I get from many people round here. However, its really JR new software ( hanve version 0.20 I would imagine ), and I think JR that that probably the coders are working on getting the JR functionality there before spending time concentrating on the JR performance. I think performance only question of time. But one more: What about German documentation for some classes. Maybe you guys could notify all developers to use English. Because I am stack in a middle with you (c) famous song. I couldn't move from dead point with my application. I do understand that now some thing are not ready yet, but I think you should pay attention to preview panel and print method. And, by the way - great job guys. --- Yours sincerely, Ivan Latysh. [EMAIL PROTECTED] http://ivan.yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: FOP - Thread-safe ?
I think it's intended to be thread safe. However, a couple of bugs (in 0.20.2) break this. A (possibly not exhaustive) list of things to fix: synchronizsation should be class-wide rather than object-wide in the following classes: org.apache.fop.fo.StandardElementMapping org.apache.fop.extensions.ExtensionElementMapping org.apache.fop.svg.SVGElementMapping Cheers /David David Rosenborg Pantor Engineering AB - Original Message - From: Claus Nielsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 11, 2001 4:28 PM Subject: FOP - Thread-safe ? Is FOP thread-safe ? Claus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
how to set userconfig.xml using org.apache.fop.apps.Driver
Hi all, I found some font metric *.xml files and edited my conf\userconfig.xml to use them. What is equivalent of fop -c conf\userconfig.xml ... rendering with org.apache.fop.apps.Driver? Thank you. Ivaylo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: how to set userconfig.xml using org.apache.fop.apps.Driver
try { File userConfigFile = new File(userconfig.xml); Options options = new Options(userConfigFile); } catch (FOPException e) {} Driver driver = new Driver(); This should do it. Claus Gabrovsky, Ivaylo To: [EMAIL PROTECTED] IGabrovsky@sk cc: andia.com Subject: how to set userconfig.xml using org.apache.fop.apps.Driver 11-12-2001 23:48 Please respond to fop-dev Hi all, I found some font metric *.xml files and edited my conf\userconfig.xml to use them. What is equivalent of fop -c conf\userconfig.xml ... rendering with org.apache.fop.apps.Driver? Thank you. Ivaylo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]