Re: FOP embedding problem (NoClassDefFoundError)
From: Chris Bowditch [EMAIL PROTECTED]Reply-To: fop-users@xmlgraphics.apache.orgTo: fop-users@xmlgraphics.apache.orgSubject: Re: FOP embedding problem (NoClassDefFoundError)Date: Tue, 19 Jul 2005 09:10:47 +0100Samuel Remacle wrote:Hello,I'm a young programmer and I'd like to embed FOP in my application, but unfortunately I'm having some problems to do this.First of all, I tried to embed FOP using the code given in the sample application ExampleFO2PDF (available with FOP), but when I tried to test my application, I got the following error:Exception in thread mainjava.lang.NoClassDefFoundError: org.apache.fop.fo.PropertyListMakerIt sounds to me as if you have downloaded the source code and not the binary distribution. Am I right? In which case you need to run the ant build script to create the Property classes! Just type build from the command line in the directory where you have downloaded FOP!Chris-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] No, I tried both, first I downloaded the binary distribution, and when I saw it wasn't working I tried to download the source code and I built it with the build.bat file given with FOP, so I obtained the fop.jar file (which is supposed to contain all the necessary classes) and I added it to my environment (Oracle JDeveloper) but I'm getting the errors I explained in my previous mail. Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP or batik problems to convert fo files
I have solved it changing .bash_profile file instead of exporting CLASSPATH each time. Let's see how it works for next days ;) Thanks and best regards, 2005/7/19, Jose Manrique Lopez de la Fuente [EMAIL PROTECTED]: 2005/7/18, [EMAIL PROTECTED] [EMAIL PROTECTED]: J.: Is batik.jar in your classpath? You need this jar for SVGs. I think so: reutiliza7:~/Desktop jsmanrique$ CLASSPATH=/opt/fop-0.20.5/build/fop.jar:\ /opt/fop-0.20.5/lib/batik.jar:\ /opt/fop-0.20.5/lib/xalan-2.4.1.jar:\ /opt/fop-0.20.5/lib/xercesImpl-2.2.1.jar:\ /opt/fop-0.20.5/lib/xml-apis.jar:\ /opt/fop-0.20.5/lib/avalon-framework-cvs-20020806.jar:\ /opt/fop-0.20.5/lib/ant-1.5.1.jar:\ /opt/fop-0.20.5/JimiProClasses.jar reutiliza7:~/Desktop jsmanrique$ export CLASSPATH reutiliza7:~/Desktop jsmanrique$ java org.apache.fop.apps.Fop -fo prueba.fo -pdf prueba.pdf [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser Exception in thread main java.lang.NoClassDefFoundError: org/apache/batik/util/XMLResourceDescriptor at org.apache.fop.svg.SVGElementMapping.setupSVG(SVGElementMapping.java:72) at org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java:134) at org.apache.fop.apps.Driver.addElementMapping(Driver.java:439) at org.apache.fop.apps.Driver.addElementMapping(Driver.java:450) at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314) at org.apache.fop.apps.Driver.init(Driver.java:222) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:92) at org.apache.fop.apps.Fop.main(Fop.java:62) reutiliza7:~/Desktop jsmanrique$ And there ins't any SVG in the xml file I am using... Thanks and best regards, -- J. Manrique López de la Fuente http://www.jsmanrique.net msn: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] -- J. Manrique López de la Fuente http://www.jsmanrique.net msn: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP embedding problem (NoClassDefFoundError)
From: Jeremias Maerki [EMAIL PROTECTED]Reply-To: fop-users@xmlgraphics.apache.orgTo: fop-users@xmlgraphics.apache.orgSubject: Re: FOP embedding problem (NoClassDefFoundError)Date: Tue, 19 Jul 2005 11:07:44 +0200Samuel,this sounds a lot like you're really mixing different versions. Pleasetake a step back, remove all the FOP stuff and restart from the FOP0.20.5 binary distribution. This should work nicely, if all theclasspaths (compiling and runtime!) are set up correctly.On 19.07.2005 10:16:07 Samuel Remacle wrote: No, I tried both, first I downloaded the binary distribution, and when I saw it wasn't working I tried to download the source code and I built it with the build.bat file given with FOP, so I obtained the fop.jar file (which is supposed to contain all the necessary classes) and I added it to my environment (Oracle JDeveloper) but I'm getting the errors I explained in my previous mail.Jeremias Maerki-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] No I didn't mix different versions, anyway I tried again to erase the reference to FOP in my environment and I erased all the files related to FOP, I downloaded again (I think it's the fifth time) FOP 0.20.5 from the Apache Website and I built it, I added the JARS to my environment, and it doesn't work :( Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP embedding problem (NoClassDefFoundError)
Hi, I downloaded FOP 0.20.5 and embedded it in a webapplication. works great. First, i see no org.apache.fop.fo.PropertyListMaker (seems replaced by org.apache.fop.fo.PropertyListBuilder but not sure) Then, i see no ElementMapping$Maker too. According to one of your mail, you are using fop 0.20.5 Here i have source of fop 0.20.5 with org.apache.fop.apps.Driver.java at line 221 i see _treeBuilder = new FOTreeBuilder(); As you can see, no reference to ElementMapping$Maker or PropertyListMaker Looks like you got the wrong sources or have some old fop libraries/classes somewhere else on your system messing up things. Le Mardi 19 Juillet 2005 09:45, Samuel Remacle a écrit : Hello, I'm a young programmer and I'd like to embed FOP in my application, but unfortunately I'm having some problems to do this. First of all, I tried to embed FOP using the code given in the sample application ExampleFO2PDF (available with FOP), but when I tried to test my application, I got the following error: Exception in thread main java.lang.NoClassDefFoundError: org.apache.fop.fo.PropertyListMaker at org.apache.fop.apps.Driver.init(Driver.java:221) at embedding.ExampleFO2PDF.convertFO2PDF(ExampleFO2PDF.java:80) at embedding.ExampleFO2PDF.main(ExampleFO2PDF.java:131) I checked the code of my application, but I couldn't find any error (the code is almost the same as in the sample apllication). So I decided to test the sample application ExampleFO2PDF, and I got the same error (I was expecting it). After seaching the web for a solution, I found (in a CVS commit) the code of the missing interface (PropertyListMaker). So I added this interface to the package and I tested again both applications, and then I got another error: Exception in thread main java.lang.NoClassDefFoundError: org.apache.fop.fo.ElementMapping$Maker at org.apache.fop.apps.Driver.init(Driver.java:221) at embedding.ExampleFO2PDF.convertFO2PDF(ExampleFO2PDF.java:80) at embedding.ExampleFO2PDF.main(ExampleFO2PDF.java:131) I searched the web once again but I could not find the code of the missing class. So I decided to test the FOP application (given with the FOP API). I tested it with y FO file, and it worked, I got my PDF file without any problem. So I tried to embed FOP in my application using the code the the FOP application (wich is different from the code of the sample application), but I got the same errors. The IDE I'm working with is Oracle JDeveloper, I added the files fop.jar, avalon-framework-cvs-20020806.jar and ant-1.5.1.jar to the environment, I did not add the Xalan and Batik JARs to the environment because I'm using more recent versions of Xalan and Batik. I downloaded FOP on the Apache website. I hope that this mail is complete and I would be glad if you could help me to solve this problem. Thanks Samuel REMACLE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP embedding problem (NoClassDefFoundError)
From: Jeremias Maerki [EMAIL PROTECTED]Reply-To: fop-users@xmlgraphics.apache.orgTo: fop-users@xmlgraphics.apache.orgSubject: Re: FOP embedding problem (NoClassDefFoundError)Date: Tue, 19 Jul 2005 11:46:28 +0200Samuel,I'm not sure how to help you any more. My suggestion is to use thepre-built JARs from the 0.20.5 binary (!) distribution.I've just reread what you wrote initially, and I've stumbled uponsomething important: You say you use a more recent Batik version. Youhave to be aware that this version may not be compatible with FOP.However, the stacktraces you showed so far are not related to this.Still, you need to use the batik.jar coming with FOP.The JARs you need to provide for normal FOP use are:- fop.jar- batik.jar- avalon-framework-cvs-20020806.jarIf you absolutely need to use the latest Batik release, then you need touse the current trunk code from Subversion. But the problem here is thatthe API has changed since 0.20.5 and it is not documented. The Driverclass is no more. Instead, you need to work with the "Fop" class.Good luck!On 19.07.2005 09:45:16 Samuel Remacle wrote: The IDE I'm working with is Oracle JDeveloper, I added the files fop.jar, avalon-framework-cvs-20020806.jar and ant-1.5.1.jar to the environment, I did not add the Xalan and Batik JARs to the environment because I'm using more recent versions of Xalan and Batik. I downloaded FOP on the Apache website.Jeremias Maerki-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] I tried to use the pre-built version but I have the same problem, I will try to use the Batik version available with FOP but as you said it doesn't seem to be related. Thanks Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP embedding problem (NoClassDefFoundError)
From: delbd [EMAIL PROTECTED]Reply-To: fop-users@xmlgraphics.apache.orgTo: fop-users@xmlgraphics.apache.orgSubject: Re: FOP embedding problem (NoClassDefFoundError)Date: Tue, 19 Jul 2005 11:49:26 +0200Hi,I downloaded FOP 0.20.5 and embedded it in a webapplication. works great.First, i see no org.apache.fop.fo.PropertyListMaker (seems replaced by org.apache.fop.fo.PropertyListBuilder but not sure)Then, i see no ElementMapping$Maker too.According to one of your mail, you are using fop 0.20.5Here i have source of fop 0.20.5 with org.apache.fop.apps.Driver.javaat line 221 i see_treeBuilder = new FOTreeBuilder();As you can see, no reference to ElementMapping$Maker or PropertyListMakerLooks like you got the wrong sources or have some old fop libraries/classes somewhere else on yoursystem messing up things.Le Mardi 19 Juillet 2005 09:45, Samuel Remacle a écrit : Hello,I'm a young programmer and I'd like to embed FOP in my application, but unfortunately I'm having some problems to do this.First of all, I tried to embed FOP using the code given in the sample application ExampleFO2PDF (available with FOP), but when I tried to test my application, I got the following error:Exception in thread main java.lang.NoClassDefFoundError: org.apache.fop.fo.PropertyListMakerat org.apache.fop.apps.Driver.init(Driver.java:221) at embedding.ExampleFO2PDF.convertFO2PDF(ExampleFO2PDF.java:80)at embedding.ExampleFO2PDF.main(ExampleFO2PDF.java:131)I checked the code of my application, but I couldn't find any error (the code is almost the same as in the sample apllication).So I decided to test the sample application ExampleFO2PDF, and I got the same error (I was expecting it).After seaching the web for a solution, I found (in a CVS commit) the code of the "missing interface" (PropertyListMaker). So I added this interface to the package and I tested again both applications, and then I got another error:Exception in thread main java.lang.NoClassDefFoundError: org.apache.fop.fo.ElementMapping$Makerat org.apache.fop.apps.Driver.init(Driver.java:221)at embedding.ExampleFO2PDF.convertFO2PDF(ExampleFO2PDF.java:80)at embedding.ExampleFO2PDF.main(ExampleFO2PDF.java:131)I searched the web once again but I could not find the code of the "missing class". So I decided to test the FOP application (given with the FOP API). I tested it with y FO file, and it worked, I got my PDF file without any problem. So I tried to embed FOP in my application using the code the the FOP application (wich is different from the code of the sample application), but I got the same errors.The IDE I'm working with is Oracle JDeveloper, I added the files fop.jar, avalon-framework-cvs-20020806.jar and ant-1.5.1.jarto the environment, I did not add the Xalan and Batik JARs to the environment because I'm using more recent versions of Xalan and Batik. I downloaded FOP on the Apache website.I hope that this mail is complete and I would be glad if you could help me to solve this problem.ThanksSamuel REMACLE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--David DelbecqRoyal Meteorological Institute of Belgium-Is there life after /sbin/halt -p?-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Hi, Yes, I also looked for these classes and I could not find them, and I also looked in the Driver class code. I don't know how I could have the wrong sources or binaries because I downloaded them on the Apache website, and I'm sure I don't have another version of FOP on my system because all I installed on it (related with Java) is Oracle JDeveloper 10g and FOP doesn't come with this program... Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP embedding problem (NoClassDefFoundError)
Ok, either i just downloaded fop 0.20.5 src from http://archive.apache.org/dist/xml/fop/source/ i checked Driver.java at offending line (221). No way this line could give the error you send us. So either you are using another version, either some tool at compile time did inject code in your .java before compilation occurs. Remove all fop related .class from your environement and hunt for any fop*.jar in your system which my interact at runtime with your environnement. Also try to add a breakpoint in Driver init code to see what debugger has to tell you about it. Your problem really lokks like a mixing up libraries problem. (aka use an old Driver.class while corresponding org.apache.fop.fo.PropertyListMaker.class is not present anymore). You should check classpath and build directory. Le Mardi 19 Juillet 2005 11:59, Samuel Remacle a écrit : From: delbd [EMAIL PROTECTED] Reply-To: fop-users@xmlgraphics.apache.org To: fop-users@xmlgraphics.apache.org Subject: Re: FOP embedding problem (NoClassDefFoundError) Date: Tue, 19 Jul 2005 11:49:26 +0200 Hi, I downloaded FOP 0.20.5 and embedded it in a webapplication. works great. First, i see no org.apache.fop.fo.PropertyListMaker (seems replaced by org.apache.fop.fo.PropertyListBuilder but not sure) Then, i see no ElementMapping$Maker too. According to one of your mail, you are using fop 0.20.5 Here i have source of fop 0.20.5 with org.apache.fop.apps.Driver.java at line 221 i see _treeBuilder = new FOTreeBuilder(); As you can see, no reference to ElementMapping$Maker or PropertyListMaker Looks like you got the wrong sources or have some old fop libraries/classes somewhere else on your system messing up things. Le Mardi 19 Juillet 2005 09:45, Samuel Remacle a écrit : Hello, I'm a young programmer and I'd like to embed FOP in my application, but unfortunately I'm having some problems to do this. First of all, I tried to embed FOP using the code given in the sample application ExampleFO2PDF (available with FOP), but when I tried to test my application, I got the following error: Exception in thread main java.lang.NoClassDefFoundError: org.apache.fop.fo.PropertyListMaker at org.apache.fop.apps.Driver.init(Driver.java:221) at embedding.ExampleFO2PDF.convertFO2PDF(ExampleFO2PDF.java:80) at embedding.ExampleFO2PDF.main(ExampleFO2PDF.java:131) I checked the code of my application, but I couldn't find any error (the code is almost the same as in the sample apllication). So I decided to test the sample application ExampleFO2PDF, and I got the same error (I was expecting it). After seaching the web for a solution, I found (in a CVS commit) the code of the missing interface (PropertyListMaker). So I added this interface to the package and I tested again both applications, and then I got another error: Exception in thread main java.lang.NoClassDefFoundError: org.apache.fop.fo.ElementMapping$Maker at org.apache.fop.apps.Driver.init(Driver.java:221) at embedding.ExampleFO2PDF.convertFO2PDF(ExampleFO2PDF.java:80) at embedding.ExampleFO2PDF.main(ExampleFO2PDF.java:131) I searched the web once again but I could not find the code of the missing class. So I decided to test the FOP application (given with the FOP API). I tested it with y FO file, and it worked, I got my PDF file without any problem. So I tried to embed FOP in my application using the code the the FOP application (wich is different from the code of the sample application), but I got the same errors. The IDE I'm working with is Oracle JDeveloper, I added the files fop.jar, avalon-framework-cvs-20020806.jar and ant-1.5.1.jar to the environment, I did not add the Xalan and Batik JARs to the environment because I'm using more recent versions of Xalan and Batik. I downloaded FOP on the Apache website. I hope that this mail is complete and I would be glad if you could help me to solve this problem. Thanks Samuel REMACLE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi, Yes, I also looked for these classes and I could not find them, and I also looked in the Driver class code. I don't know how I could have the wrong sources or binaries because I downloaded them on the Apache website, and I'm sure I don't have another version of FOP on my system because all I installed on it (related with Java) is Oracle JDeveloper 10g
hide when printing
Is it possible to hide an fo:block for printing? Thanks, D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Huge size of Output PDF when inserting 49 SVG Images
Hi all, I have an xsl-fo which inserts 49 SVG images into the PDF file. These files are diagrams, containing text and vectorial symbols. After launching the Fop processing, have a bath, coffee, and so on, I finally get a nice 730 MB Pdf file of 160 pages... The Word comparison is... 1.4 Mb... Is there any switch in FOP that might handle the SVG a bit more efficiently? FOP command : CALL ..\..\Tools\fop-0.20.5\fop -q -c ..\..\Tools\fop-0.20.5\conf\PostConfig.xml -fo ..\XSL-FO\pcs_Kommissionierung_automatisch.fo -pdf ..\Output\PDF\PA\pcs_Kommissionierung_automatisch.pdf XSL-FO Image import extract : fo:block text-align=center padding-after=15pt fo:external-graphic src=../Output/Bilder/EA_Diagrammen/SVG/d206_PDF.svg content-type=content-type: xml/svg block-progression-dimension=17cm inline-progression- dimension=25.7cm/ /fo:block The SVG width and Height have been set in a way that they fit a given area on the page. And here the header of the SVG : svg xmlns:xlink=http://www.w3.org/1999/xlink; width=525 height=503 viewBox=-19 -14 1189 1140 preserveAspectRatio=xMinYMin meet kerning=0 xml:space=preserve style=stroke: black; fill: none; g../g /svg Any help would be appreciated ;-) regards Lawrence Michel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hide when printing
You can always use xsl:if during XSLT to suppress the generation of certain FOs. There's no possibility to hide a block for printing in a PDF or PS. On 19.07.2005 15:31:45 Daniel Brown wrote: Is it possible to hide an fo:block for printing? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Not-Solved - Huge size of Output PDF when inserting 49 SVG Images
I already tried this alternate way, but it didn't change anything. (StrokeSVGText set to false) The SVG contains more or less 40 to 60 graphics (g). Each one having text with ellipses, rect, and so on. I tried the external Batik Rasterizer SVG to pdf conversion. The Pdf output is small (300k per SVG) ... and perfect. The external-graphics tag included has two xsl-fo:blocks as parents (ie parent + grandparent). Could it be the problem? Second : As you'll see, the graphics blocks are all in one single page-sequence and flow. Is there a problem with that? FO Abstract : fo:page-sequence master-reference=Title font-family=Frutiger45Light fo:flow flow-name=xsl-region-body fo:block id=d1e390153.4pct_Sortierung_NF break-before=page fo:block text-align=center padding-after=15pt fo:external-graphic src=../Output/Bilder/EA_Diagrammen/SVG/d211_PDF.svg content-type=content-type: xml/svg block- progression-dimension=17cm inline-progression-dimension=25.7cm/ /fo:block /fo:block (... + 48 times identical blocs with SVG graphics...) /fo:flow /fo:page-sequence Thank you for your help Lawrence Michel -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 19. Juli 2005 16:04 An: fop-users@xmlgraphics.apache.org Betreff: Re: Huge size of Output PDF when inserting 49 SVG Images You can have a look at the strokeSVG switch: http://xml.apache.org/fop/configuration.html#strokeSVGText If it's set to true all text is rendered as shapes and takes (1) more time and (2) more space, but is (3) probably more accurate. Switching it to false might help but can have side-effects. Also be sure to give the process enough memory so the garbage collector kicks in later. Maybe that helps. On 19.07.2005 15:55:45 michella wrote: Hi all, I have an xsl-fo which inserts 49 SVG images into the PDF file. These files are diagrams, containing text and vectorial symbols. After launching the Fop processing, have a bath, coffee, and so on, I finally get a nice 730 MB Pdf file of 160 pages... The Word comparison is... 1.4 Mb... Is there any switch in FOP that might handle the SVG a bit more efficiently? FOP command : CALL ..\..\Tools\fop-0.20.5\fop -q -c ..\..\Tools\fop-0.20.5\conf\PostConfig.xml -fo ..\XSL-FO\pcs_Kommissionierung_automatisch.fo -pdf ..\Output\PDF\PA\pcs_Kommissionierung_automatisch.pdf XSL-FO Image import extract : fo:block text-align=center padding-after=15pt fo:external-graphic src=../Output/Bilder/EA_Diagrammen/SVG/d206_PDF.svg content-type=content-type: xml/svg block-progression-dimension=17cm inline-progression- dimension=25.7cm/ /fo:block The SVG width and Height have been set in a way that they fit a given area on the page. And here the header of the SVG : svg xmlns:xlink=http://www.w3.org/1999/xlink; width=525 height=503 viewBox=-19 -14 1189 1140 preserveAspectRatio=xMinYMin meet kerning=0 xml:space=preserve style=stroke: black; fill: none; g../g /svg Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Not-Solved - Huge size of Output PDF when inserting 49 SVG Images
On 19.07.2005 17:27:38 michella wrote: I already tried this alternate way, but it didn't change anything. (StrokeSVGText set to false) The SVG contains more or less 40 to 60 graphics (g). Each one having text with ellipses, rect, and so on. I tried the external Batik Rasterizer SVG to pdf conversion. The Pdf output is small (300k per SVG) ... and perfect. The PDF Transcoder delivered with Batik is based on the FOP Trunk code (redesign). It could very well be that there are considerable improvements for your use case. If all you do is basically use XSL-FO to place a set of SVGs on several pages you could try the trunk source code. http://xml.apache.org/fop/download.html#source There's a little catch ATM: A bug may render the SVGs too small. I already fixed that on my machine at home (I'm at ApacheCon ATM) but I'm pretty sure I fixed it the wrong way. I still have to investigate that and probably won't be able to fix it before next week. As a momentary work-around you could make sure that the if-statement in the line below (found in PDFXMLHandler.java) always resolves to false: old: if (!at.isIdentity()) { new: if (false !at.isIdentity()) { Depending on your skills that may sound adventurous, but that's all I can offer right now. The external-graphics tag included has two xsl-fo:blocks as parents (ie parent + grandparent). Could it be the problem? No. Second : As you'll see, the graphics blocks are all in one single page-sequence and flow. Is there a problem with that? No. FO Abstract : fo:page-sequence master-reference=Title font-family=Frutiger45Light fo:flow flow-name=xsl-region-body fo:block id=d1e390153.4pct_Sortierung_NF break-before=page fo:block text-align=center padding-after=15pt fo:external-graphic src=../Output/Bilder/EA_Diagrammen/SVG/d211_PDF.svg content-type=content-type: xml/svg block- progression-dimension=17cm inline-progression-dimension=25.7cm/ /fo:block /fo:block (... + 48 times identical blocs with SVG graphics...) /fo:flow /fo:page-sequence Thank you for your help Lawrence Michel -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 19. Juli 2005 16:04 An: fop-users@xmlgraphics.apache.org Betreff: Re: Huge size of Output PDF when inserting 49 SVG Images You can have a look at the strokeSVG switch: http://xml.apache.org/fop/configuration.html#strokeSVGText If it's set to true all text is rendered as shapes and takes (1) more time and (2) more space, but is (3) probably more accurate. Switching it to false might help but can have side-effects. Also be sure to give the process enough memory so the garbage collector kicks in later. Maybe that helps. On 19.07.2005 15:55:45 michella wrote: Hi all, I have an xsl-fo which inserts 49 SVG images into the PDF file. These files are diagrams, containing text and vectorial symbols. After launching the Fop processing, have a bath, coffee, and so on, I finally get a nice 730 MB Pdf file of 160 pages... The Word comparison is... 1.4 Mb... Is there any switch in FOP that might handle the SVG a bit more efficiently? FOP command : CALL ..\..\Tools\fop-0.20.5\fop -q -c ..\..\Tools\fop-0.20.5\conf\PostConfig.xml -fo ..\XSL-FO\pcs_Kommissionierung_automatisch.fo -pdf ..\Output\PDF\PA\pcs_Kommissionierung_automatisch.pdf XSL-FO Image import extract : fo:block text-align=center padding-after=15pt fo:external-graphic src=../Output/Bilder/EA_Diagrammen/SVG/d206_PDF.svg content-type=content-type: xml/svg block-progression-dimension=17cm inline-progression- dimension=25.7cm/ /fo:block The SVG width and Height have been set in a way that they fit a given area on the page. And here the header of the SVG : svg xmlns:xlink=http://www.w3.org/1999/xlink; width=525 height=503 viewBox=-19 -14 1189 1140 preserveAspectRatio=xMinYMin meet kerning=0 xml:space=preserve style=stroke: black; fill: none; g../g /svg Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP embedding problem (NoClassDefFoundError)
This is not a web application, so I'm not using Tomcat... Samuel From: "Jeff Stanley" [EMAIL PROTECTED]Reply-To: fop-users@xmlgraphics.apache.orgTo: fop-users@xmlgraphics.apache.orgSubject: RE: FOP embedding problem (NoClassDefFoundError)Date: Tue, 19 Jul 2005 10:30:49 -0500Sounds like your .jar files are not being shared across differentweb-apps, do you have shared jar files in the common lib folder ofTomcat?From: Samuel Remacle [mailto:[EMAIL PROTECTED]Sent: Tuesday, July 19, 2005 2:45 AMTo: fop-users@xmlgraphics.apache.orgSubject: FOP embedding problem (NoClassDefFoundError)Hello,I'm a young programmer and I'd like to embed FOP in my application, butunfortunately I'm having some problems to do this.First of all, I tried to embed FOP using the code given in the sampleapplication ExampleFO2PDF (available with FOP), but when I tried to testmy application, I got the following error:Exception in thread mainjava.lang.NoClassDefFoundError: org.apache.fop.fo.PropertyListMakerat org.apache.fop.apps.Driver.init(Driver.java:221)at embedding.ExampleFO2PDF.convertFO2PDF(ExampleFO2PDF.java:80)at embedding.ExampleFO2PDF.main(ExampleFO2PDF.java:131)I checked the code of my application, but I couldn't find any error (thecode is almost the same as in the sample apllication).So I decided to test the sample application ExampleFO2PDF, and I got thesame error (I was expecting it).After seaching the web for a solution, I found (in a CVS commit) thecode of the "missing interface" (PropertyListMaker). So I added thisinterface to the package and I tested again both applications, and thenI got another error:Exception in thread mainjava.lang.NoClassDefFoundError: org.apache.fop.fo.ElementMapping$Makerat org.apache.fop.apps.Driver.init(Driver.java:221)at embedding.ExampleFO2PDF.convertFO2PDF(ExampleFO2PDF.java:80)at embedding.ExampleFO2PDF.main(ExampleFO2PDF.java:131)I searched the web once again but I could not find the code of the"missing class". So I decided to test the FOP application (given withthe FOP API). I tested it with y FO file, and it worked, I got my PDFfile without any problem. So I tried to embed FOP in my applicationusing the code the the FOP application (wich is different from the codeof the sample application), but I got the same errors.The IDE I'm working with is Oracle JDeveloper, I added the filesfop.jar, avalon-framework-cvs-20020806.jar and ant-1.5.1.jar to theenvironment, I did not add the Xalan and Batik JARs to the environmentbecause I'm using more recent versions of Xalan and Batik. I downloadedFOP on the Apache website.I hope that this mail is complete and I would be glad if you could helpme to solve this problem.ThanksSamuel REMACLE- Tounsubscribe, e-mail: [EMAIL PROTECTED] Foradditional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Document off by a line
I finally found the reason for the problem. Completely unrelated to FOP, after much pulling of hair. The line creep that I'm experiencing is cause by our printer (Oki). A different printer (Lexmark) that I tested with don't have the creeping problem. Appreciate all the posted advise. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP embedding problem (NoClassDefFoundError)
delbd wrote: i checked Driver.java at offending line (221). No way this line could give the error you send us. *chuckle* The interesting line is actually the following line, which contains setDefaultMappings(). This will in turn load a StandardElementMapping class, which constructs Maker classes in static Java code. Maybe the Oracle IDE has a class loader issue there. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]