Re: FOP memory usage
On Mon, 02 Jul 2001 20:13:14 Rorvick, Chris wrote: After a few days of using FOP and thumbing through the PDF spec, I've made the following observations. It seems that PDFs should be able to be generated in constant memory, but FOP currently does not work this way. Are both of these statements correct? I determined the second observation by writing a very simple program that uses FileInputStreams for both input and output, and just watched the memory usage of the process while it generated a 90 page PDF. So my question is, does FOP currently support, or will it ever support, generation of reports in constant memory (relative to the size of the input?) I'm not sure which you mean O(n) or constant mem usage. I think you will find that it is currently roughly O(n) with memory usage (somewhere around 3.5x mem usage for the document). This is only my estimate it could well be wrong since I have never tested it. If you want it to use constant memory for the fo objects and layout then it becomes quite difficult to handle the layout but it may be possible. I'm not sure if you can have constant memory for the pdf generation though. Ideally it should try to approach O(log n) with memory usage if constant is not possible. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Text-Decoration (underline) Problem
Title: Message This used to work in .12 doesn't work in ,18 and up, I think it should, could someone look into it, please. Underline isn't done and I can't move the underline inside of the Table Cell because of the way the document is generated. The table is used only for output to add line numbers. fo:block break-before="auto" space-before.optimum="12pt"fo:inline text-decoration="underline"fo:tablefo:table-column column-width="155.708mm" column-number="1"/fo:table-column column-width="2.324mm" column-number="2"/fo:table-column column-width="16.268mm" column-number="3"/fo:table-bodyfo:table-rowfo:table-cell column-number="1"fo:block start-indent="0.2324mm" text-indent="11.62mm" space-before.optimum="6pt" text-align="start" font-weight="normal" font-size="11pt" font-family="Courier"fo:inline font-weight="bold"Section 1. /fo:inline That section 4935.03 of the Revised Code be amended to read as follows:/fo:block/fo:table-cellfo:table-cell column-number="2"/fo:table-cell column-number="3"/fo:table-cell/fo:table-row/fo:table-body/fo:table/fo:inline/fo:block John H. Wyman5160 Darry LaneDublin, OH 43016(614)-889-0698[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]Wyman Genealogy Site http://www.wyman.orgFrancis Wyman Assoc email List http://groups.yahoo.com/group/FrancisWymanAssocWyman Family Genealogy Forum http://genforum.genealogy.com/wyman/The Wyman Surname Message Board http://www.familyhistory.com/messages/messages.asp?category=surnameforum=Wyman
Java transformation from xsl-fo to pdf
Hi, I need transform a XSL-FO file to a PDF file. I am a beginner in Java, the next code would be correct? What have I to change? Code: import javax.xml.transform.*; import javax.xml.transform.stream.*; import java.io.File; import org.apache.fop.apps.Fop; public class pdf { public static void main(String[] args) throws Exception { File in = new File(args[0]); File out = new File(args[1]); Driver driver=new Driver(); driver.setRenderer(Driver.RENDER_PDF); driver.setWriter(new PrintWriter(new FileWriter(out))); driver.buildFOTree((Parser)parser, new InputSource(in) ); driver.format(); driver.render(); } } I use the next libraries: fop.jar;xerces-1.2.3.jar;w3c.jar;xalan-2.0.0.jar;jimi-1.0.jar Where can I find a correct code? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Java transformation from xsl-fo to pdf
--- Braniganz [EMAIL PROTECTED] wrote: Hi, I need transform a XSL-FO file to a PDF file. I am a beginner in Java, the next code would be correct? What have I to change? I really don't think this is the right mailing list to help you learn Java. I try to be really helpful but since you know you are a java beginner why don't you concentrate on learning Java first. a) Have you tried this code? If so then why didn't you post the errors you get? b) Do you know what an InputStream is? in particular a FileInputStream? c) Have you looked in the examples directory? in particular the docs/examples/embedding directory? You may find the FopServlet.java a useful example, (if you ignore the fact that it is a servlet) d) You didn't say what version of FOP you have. goodluck. Alex = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ DR WHO COMPETITION: http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104 Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Java transformation from xsl-fo to pdf
Hi, if all you want to do is transform an FO file into PDF (i.e. not embed the fop classes in a programm) then you can run fop simply by calling: fop.sh yourfile.fo yourfile.pdf or (in win): fop.bat yourfile.fo yourfile.pdf HTH, Michiel $ -Original Message- $ From: Braniganz [mailto:[EMAIL PROTECTED]] $ Sent: dinsdag 3 juli 2001 14:01 $ To: [EMAIL PROTECTED] $ Subject: Java transformation from xsl-fo to pdf $ $ $ Hi, $ $ I need transform a XSL-FO file to a PDF file. $ I am a beginner in Java, the next code would be correct? What $ have I to $ change? $ $ Code: $ $ import javax.xml.transform.*; $ import javax.xml.transform.stream.*; $ import java.io.File; $ $ import org.apache.fop.apps.Fop; $ $ public class pdf { $ $ public static void main(String[] args) throws Exception { $ File in = new File(args[0]); $ File out = new File(args[1]); $ $ $ Driver driver=new Driver(); $ $ driver.setRenderer(Driver.RENDER_PDF); $ $ driver.setWriter(new PrintWriter(new FileWriter(out))); $ driver.buildFOTree((Parser)parser, new InputSource(in) ); $ driver.format(); $ driver.render(); $ $ } $ } $ $ I use the next libraries: $ fop.jar;xerces-1.2.3.jar;w3c.jar;xalan-2.0.0.jar;jimi-1.0.jar $ $ Where can I find a correct code? $ $ Thanks $ $ $ - $ To unsubscribe, e-mail: [EMAIL PROTECTED] $ For additional commands, email: [EMAIL PROTECTED] $ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[Bug 2441] New: - Fop 0.19 fails to shutdown when running -print
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2441 *** shadow/2441 Tue Jul 3 13:43:06 2001 --- shadow/2441.tmp.10969 Tue Jul 3 13:43:06 2001 *** *** 0 --- 1,80 + ++ + | Fop 0.19 fails to shutdown when running -print | + ++ + |Bug #: 2441Product: Fop | + | Status: NEW Version: all | + | Resolution:Platform: PC | + | Severity: Blocker OS/Version: Windows NT/2K | + | Priority: Other Component: pdf renderer| + ++ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED]| + | CC list: Cc: | + ++ + | URL: | + ++ + | DESCRIPTION | + We observed that Fop 0.19.0-CVS simply hangs forever when + the -print option is used. Output properly goes to + the printer, but the vm never shutsdown. + + We fixed it by tossing in an System.exit(0) - but we + assume others might prefer a more ~elegent~ solution. + + one other clue: when output goes to -pdf file + the output stream prints [1] and [2] + + Thread dump follows: + + FOP 0.19.0-CVS + using SAX parser org.apache.xerces.parsers.SAXParser + building formatting object tree + setting up fonts + formatting FOs into areas + [1] + Full thread dump: + + Thread-1 prio=5 tid=0x7a4300 nid=0x142 waiting on monitor [0..0x6fb30] + + AWT-Windows prio=7 tid=0x79bde0 nid=0x13d runnable [0x8f6f000..0x8f6fdc0] + at sun.awt.windows.WToolkit.eventLoop(Native Method) + at sun.awt.windows.WToolkit.run(Unknown Source) + at java.lang.Thread.run(Unknown Source) + + SunToolkit.PostEventQueue-0 prio=7 tid=0x79a8e0 nid=0x155 waiting on monitor [ + 0x8f2f000..0x8f2fdc0] + at java.lang.Object.wait(Native Method) + at java.lang.Object.wait(Unknown Source) + at sun.awt.PostEventQueue.run(Unknown Source) + + AWT-EventQueue-0 prio=7 tid=0x7990a0 nid=0xe5 waiting on monitor [0x8eef000..0 + x8eefdc0] + at java.lang.Object.wait(Native Method) + at java.lang.Object.wait(Unknown Source) + at java.awt.EventQueue.getNextEvent(Unknown Source) + at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) + + at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) + at java.awt.EventDispatchThread.pumpEvents(Unknown Source) + at java.awt.EventDispatchThread.run(Unknown Source) + + Signal Dispatcher daemon prio=10 tid=0x768050 nid=0xbe waiting on monitor [0.. + 0] + + Finalizer daemon prio=9 tid=0x766e30 nid=0xbd waiting on monitor [0x8d8f000..0 + x8d8fdc0] + at java.lang.Object.wait(Native Method) + at java.lang.ref.ReferenceQueue.remove(Unknown Source) + at java.lang.ref.ReferenceQueue.remove(Unknown Source) + at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) + + Reference Handler daemon prio=10 tid=0x765b50 nid=0x14d waiting on monitor [0x + 8d4f000..0x8d4fdc0] + at java.lang.Object.wait(Native Method) + at java.lang.Object.wait(Unknown Source) + at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source) + + VM Thread prio=5 tid=0x764de0 nid=0xd7 runnable + + VM Periodic Task Thread prio=10 tid=0x7671d0 nid=0x49 waiting on monitor + Suspend Checker Thread prio=10 tid=0x768690 nid=0x37 runnable - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Text-Decoration (underline) Problem
John Wyman wrote: This used to work in .12 doesn't work in ,18 and up, I think it should, could someone look into it, please. I'm quite sure it did not work in 0.12 !! (And as I have done the code for text-decoration I should know ;-) Underline isn't done and I can't move the underline inside of the Table Cell because of the way the document is generated. The table is used only for output to add line numbers. My first thought was that this is not legal XSL but after looking at the CR I'm not sure anymore: If the property is specified for a block-level element, it affects all inline-level descendants of the element. If it is specified for (or affects) an inline-level element, it affects all boxes generated by the element. As it is specified for a inline-level element the question is if the table is a box generated by this elemnet ? Anyway, it is is not implemented yet and I don't know when/if I get some time to do it.. fo:block break-before=auto space-before.optimum=12pt fo:inline text-decoration=underline fo:table [...] John H. Wyman Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem with table and footnote
The footnote and cell content overlay each other . Please see the attachments. Does anybody have a fix for the problem? columns1.pdf columns1.fo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: CLASSPATH
Try this one. java -cp lib\fop.jar;lib\w3c.jar;lib\xerces-1.2.3.jar;lib\xalan-2.0.0.jar;lib\jimi-1.0.jar;lib\batik.jar org.apache.fop.apps.Fop Abdul Wahab wrote: Could you please tell me!! What are the Jar files path needed to set for basic FOP.ThanksWahab
Thanks
Hi Thanks to All whoever helpto initiate me in FOP. Now Ibegin to work with FOP. Hopefully I will get u all with more doubts using FOP hereafter. Thanks, Wahab.
Re: Runtime Exception
you need to specify the the directory in which you put the foptest/FopServlet.class Abdul Wahab wrote: Hi!I have set classpath for fop.jar, xerces-1.2.3.jar and xalan-1.2.2.jar files. Then I try to compile FopServlet.java which is given in FOP-examples/embedding folder. Its complied successfully. But when I try to access the particular class, its throwing Runtime Exception..[03/Jul/2001 12:42:41:2] error: Exception: SERVLET-execution_failed: Error in executing servlet FopServlet: java.lang.NoClassDefFoundError: foptest/FopServlet (wrong name: FopServlet) Exception Stack Trace: java.lang.NoClassDefFoundError: foptest/FopServlet (wrong name: FopServlet)at java.lang.ClassLoader.defineClass0(Native Method)at java.lang.ClassLoader.defineClass(ClassLoader.java:442)at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)at java.net.URLClassLoader.access$1(URLClassLoader.java:216)at java.net.URLClassLoader$1.run(URLClassLoader.java:197)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(URLClassLoader.java:191)at java.lang.ClassLoader.loadClass(ClassLoader.java:290)at sun.misc.Launcher$AppClassLoaderjava.lang.ClassCastException: java.lang.NoClassDefFoundErrorat com.netscape.server.servlet.servl.loadClass(Launcher.java:275)at java.lang.ClassLoader.loadClass(ClassLoader.java:247)at com.ketrunner.ServletRunner.reportError(Unknown Source)at com.netscape.server.servlet.servletrunner.Sivasoft.engine.EngineClassLoader.loadClassUsingParent(Unknown Source)at com.kivasoft.engine.EngiervletRunner.execute(Unknown Source)at com.kivasoft.applogic.AppLogic.execute(Unknown Source)neClassLoader.loadClass(Unknown Source)at com.kivasoft.util.Util.classForName(Unknown Source)at com.kivasoft.applogic.AppLogic.execute(Unknown Source)at com.kivasoft.thread.ThreadBasic.run(at com.netscape.server.servlet.misc.ServletLoader.loadClass(Unknown Source)at com.netscape.serveNative Method)at java.lang.Thread.run(Thread.java:479)r.servlet.servletrunner.ServletRepository.loadServlet(Unknown Source)at com.netscape.server.servlet.servletrunner.ServletRepository.createInstance(Unknown Source)at com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo(Unknown Source)at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source)at com.kivasoft.applogic.AppLogic.execute(Unknown Source)at com.kivasoft.applogic.AppLogic.execute(Unknown Source)at com.kivasoft.thread.ThreadBasic.run(Native Method)at java.lang.Thread.run(Thread.java:479) [03/Jul/2001 12:42:42:0] error: APPLOGIC-caught_exception: Caught Exception:I am using iPlanet App Server 6.0 sp2. Pls update me to get success in FOP.ThanksWahab.
Re: Problem in Fop-test
Copy jars listed below to c:\JavaSoft\jre\1.3.1\lib\ext directory wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\fop.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\ant.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\w3c.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\xalan-1.2.2.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\xalan-2.0.0.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\xalanj1compat.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\xerces.jar; good luck Ingo Bruell wrote: Hi wei, wf I work for the German Telecom. wf I am interesting in the Fop Product. I downloaded wf FOP018_1dev_src and then set the Classpath: wf c:\JavaSoft\Jre\1.3.1\lib\rt.jar; wf c:\JavaSoft\Jre\1.3.1\lib\i18n.jar; wf c:\JavaSoft\Jre\1.3.1\lib\jaws.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\fop.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\ant.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\w3c.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\xalan-1.2.2.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\xalan-2.0.0.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\xalanj1compat.jar; wf D:\Apache_FOP\FOP018_1dev_src\Fop-0.18.1-DEV\lib\xerces.jar; You don't have to set the jars from the jre in the classpath. Have you added the Fop Directory where the fop.bat file lies to the Systempath ? so long Ingo Bruell --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu - 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: Java code doing transformation from xml to pdf
This url http://xml.apache.org/fop/embedding.html has the info you are looking for. Braniganz wrote: Hi, I have done a stylesheet that transform XML to XSL-FO, in order to create a PDF file from XML. Where can I find the java code that does this transformation? Thanks - 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: New user expect help
This email will help you get you started. Subject: Re: New user expect help Date: Mon, 02 Jul 2001 12:37:40 -0300 From: Arved Sandstrom [EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] You should be able to get started using the instructions at http://xml.apache.org/fop/running.html. In terms of using FOP as a servlet, we have some instructions at the end of http://xml.apache.org/fop/embedding.html. I have never used iWS as anything but a static-HTML front-end for iAS (that is, iAS and not iWS handles servlets), so I don't know if things will be quite as simple for iWS, but it probably is. If you have any problems please let us know what FOP distribution you are working with. I'd personally be happy to help with getting the servlet up and runing with iWS if you run into any problems. "S.A.Abdul Wahab" wrote: Hi!I am very new user to FOP. I couldn't find how to use FOP and what to set, if needed, like COCOON Project. So could you please explain me indetail. I am using iPlanet WebServer4.1.Thanks,Abdul Wahab.