Re: Problem with SVG
IMO whether you use instream-foreign-object or external-graphic is not a matter of style. It simply depends on where you place your SVG. I'm using both kinds all the time. The result should be pretty much the same. On 29.10.2004 10:43:09 Johannes Franz wrote: > just tried it with another svg file and fop runs without an error message. It > is a bit odd that it didn't work with the other file, but external graphic > works with svg. > Do you think it is better to use instream-foreign-object? A better style of > fo? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
Batik has links to mailing lists for SVG: http://xml.apache.org/batik/mailList.html On 29.10.2004 11:00:29 Johannes Franz wrote: > By the way does anybody know a good mailinglist or forum to ask questions > concerning svg? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
By the way does anybody know a good mailinglist or forum to ask questions concerning svg? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
Hi, just tried it with another svg file and fop runs without an error message. It is a bit odd that it didn't work with the other file, but external graphic works with svg. Do you think it is better to use instream-foreign-object? A better style of fo? Am Freitag, 29. Oktober 2004 14:10 schrieb [EMAIL PROTECTED]: > I did not realize you were reading in the svg from a file. This is > somewhat new territory for me as all of my svg's are in the XSL. > > I don't think you can use an SVG as a source for an external graphic (it's > designed for GIFs and the like). Try using an "instream-foreign-object" > with your svg and see if you get the same error. > > If I am wrong about the external graphic, someone please correct me. > > -Lou > > > > > Johannes Franz >[EMAIL PROTECTED] rub.de> cc: >Subject: Re: Problem with > SVG 10/28/2004 07:25 > Please respond > to fop-user > > > > > > Ok, > this are my sample files. > > My commandline is: > > .../fop.sh -xml diagram.xml -xsl protocol-extern.xsl test.pdf > > Am Donnerstag, 28. Oktober 2004 16:36 schrieb [EMAIL PROTECTED]: > > I can open this OK in Adobe's viewer. The only error I get is "bad CSS > > selector". > > > > Can you send your command line? I'll try it on my side. > > > > -Lou > > > > > > > > > > Johannes Franz > >> [EMAIL PROTECTED] rub.de> cc: > >Subject: Re: Problem with > > SVG 10/28/2004 06:34 > > Please respond > > to fop-user > > > > > > > > > > > > Perhaps the problem lies in the svg itself. > > So i attach it to this email. > > > > Am Montag, 25. Oktober 2004 17:31 schrieb [EMAIL PROTECTED]: > > > Add the batik.jar to your classpath. Here is a sample batch file that > > I > > > > use with FOP 0.20.3 on Windows 2000: > > > > > > set > > ppp=.;\bin\deploy\batik.jar;\bin\deploy\logkit-1.0.jar;\bin\deploy\avalon-f > > >ramework-4.0.jar;\bin\deploy\xerces-1.2.3.jar;\bin\deploy\xalan-2.0.0.jar; > > > > >\b > > > > > >in\deploy\fop.jar > > > > > > java -cp %ppp% org.apache.fop.apps.Fop -s -d -xml %1 -xsl %2 -pdf > > > > debug.pdf > > > > > -c userconfig.xml > > > > > > Hope this helps. > > > > > > -Lou > > > > > > > > > > > > > > > "Johannes Franz" > > >> > <[EMAIL PROTECTED]> rub.de> cc: > > >Subject: Re: Problem > > with > > > > SVG 10/25/2004 10:32 > > > Please respond > > > to fop-user > > > > > > > > > > > > > > > > > > Ok, i have to include Batik. Could you perhaps explain how to do this? > > I > > > > don't exactly understand the faq. > > > > > > > > > - Original Message - > > > From: <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Monday, October 25, 2004 1:30 PM > > > Subject: Re: Problem with SVG > > > > > > > SVG is not natively supported through FOP - it requires Batik. Don't > > > > forget to include the Batik jar that came with your FOP distribution. > > > > > > > > See http://xml.apache.org/fop/graphics.html#batik > > > > or > > > > http://xml.apache.org/fop/graphics.html#svg > > > > > > > > -Lou > > > > > > > > > > > > > > > > > > > > Johannes Franz > > > > > > > [EMAIL PROTECTED] > > > > rub.de> cc: > > > > Subject: Problem with > > SVG > > > > > 10/25/2004 03:41 > > > > Please respond > > > > to fop-user > > > > > > > > > > > > > > > > > > > > > > > > Hi there, > &
Re: Problem with SVG
I did not realize you were reading in the svg from a file. This is somewhat new territory for me as all of my svg's are in the XSL. I don't think you can use an SVG as a source for an external graphic (it's designed for GIFs and the like). Try using an "instream-foreign-object" with your svg and see if you get the same error. If I am wrong about the external graphic, someone please correct me. -Lou Johannes Franz cc: Subject: Re: Problem with SVG 10/28/2004 07:25 Please respond to fop-user Ok, this are my sample files. My commandline is: .../fop.sh -xml diagram.xml -xsl protocol-extern.xsl test.pdf Am Donnerstag, 28. Oktober 2004 16:36 schrieb [EMAIL PROTECTED]: > I can open this OK in Adobe's viewer. The only error I get is "bad CSS > selector". > > Can you send your command line? I'll try it on my side. > > -Lou > > > > > Johannes Franz >[EMAIL PROTECTED] rub.de> cc: >Subject: Re: Problem with > SVG 10/28/2004 06:34 > Please respond > to fop-user > > > > > > Perhaps the problem lies in the svg itself. > So i attach it to this email. > > Am Montag, 25. Oktober 2004 17:31 schrieb [EMAIL PROTECTED]: > > Add the batik.jar to your classpath. Here is a sample batch file that I > > use with FOP 0.20.3 on Windows 2000: > > > > set > > ppp=.;\bin\deploy\batik.jar;\bin\deploy\logkit-1.0.jar;\bin\deploy\avalon-f > > >ramework-4.0.jar;\bin\deploy\xerces-1.2.3.jar;\bin\deploy\xalan-2.0.0.jar; > >\b > > > >in\deploy\fop.jar > > > > java -cp %ppp% org.apache.fop.apps.Fop -s -d -xml %1 -xsl %2 -pdf > > debug.pdf > > > -c userconfig.xml > > > > Hope this helps. > > > > -Lou > > > > > > > > > > "Johannes Franz" > >> <[EMAIL PROTECTED]> rub.de> cc: > >Subject: Re: Problem with > > SVG 10/25/2004 10:32 > > Please respond > > to fop-user > > > > > > > > > > > > Ok, i have to include Batik. Could you perhaps explain how to do this? I > > don't exactly understand the faq. > > > > > > - Original Message - > > From: <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, October 25, 2004 1:30 PM > > Subject: Re: Problem with SVG > > > > > SVG is not natively supported through FOP - it requires Batik. Don't > > > forget to include the Batik jar that came with your FOP distribution. > > > > > > See http://xml.apache.org/fop/graphics.html#batik > > > or > > > http://xml.apache.org/fop/graphics.html#svg > > > > > > -Lou > > > > > > > > > > > > > > > Johannes Franz > > > > > [EMAIL PROTECTED] > > > rub.de> cc: > > > Subject: Problem with SVG > > > 10/25/2004 03:41 > > > Please respond > > > to fop-user > > > > > > > > > > > > > >
Re: Problem with SVG
Johannes Franz wrote: By the way i just read that there is a function to clear the image cache. Do you think that there is a good position in the jars to set this function. I would like to reset the cache after every image, because for my uses i don't need a cache. Most of the embeded images are unique and it doesn't depend on the time to create the pdf but on the amount of images i can embed. It's of no use to clean the cache during PDF rendering, at least for bitmapped images, due to the way PDF image objects are coded and the PDF object dictionary is written. SVG is different but needs much less space then equivalent hi-res bitmapped images anyway. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
By the way i just read that there is a function to clear the image cache. Do you think that there is a good position in the jars to set this function. I would like to reset the cache after every image, because for my uses i don't need a cache. Most of the embeded images are unique and it doesn't depend on the time to create the pdf but on the amount of images i can embed. - Original Message - From: "Johannes Franz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 28, 2004 9:29 PM Subject: Re: Problem with SVG Yes, i just wanted to test first how to embed one graphic. then i wanted to copy the file - lets say - 100 times and rename it. then i wanted to run my test... - Original Message - From: "Andreas L. Delmelle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 28, 2004 9:00 PM Subject: RE: Problem with SVG -Original Message- From: Johannes Franz [mailto:[EMAIL PROTECTED] Hi, FYI: since your original question also mentioned 'how many svgs can one embed before the OOMError occurs?', here's a little advice. You won't be able to accurately test this with just one SVG, you'd need to have quite a few and all different, because if it's the same one, FOP keeps it in a cache anyway. I haven't exactly tried myself, but I'm guessing that if you embed the same graphic once or 100 times, it shouldn't make that much of a difference... Besides that: But when i run fop i get the following error message: [ERROR] Batik not in class path [ERROR] Error while creating area : No ImageReader for this type of image (file:/home/johannes/AT_PI.vdo/diagram.svg) What's the problem? ... batik.jar seems to be added. From my fop.sh: DIRLIBS=${FOP_HOME}/lib/*.jar And batik.jar is located in /lib. So any other idea why this problem occurs? Hmm... I get the very same error you describe here when I try to render your supplied files. Very strange indeed... Only place this error message appears in FOP is in fop.image.analyser.SVGReader, as a result of a NoClassDefFoundError while trying to load the image using Batik's classes... I'm having no trouble viewing the SVG with Batik Squiggle, but I do encounter problems trying to rasterize it, albeit not a NCDFError Is it possible that Batik *is* loaded, but the rasterizer can't handle the SVG for some reason, so one of its classes is actually causing the error? Forcing FOP to deal with it, but that's not exactly what the message in that 'catch' block was meant for... In any case, you might want to check on batik-user, and ask if someone over there has a clue why this 'diagram.svg' won't work with their rasterizer. Greetz, Andreas - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
Yes, i just wanted to test first how to embed one graphic. then i wanted to copy the file - lets say - 100 times and rename it. then i wanted to run my test... - Original Message - From: "Andreas L. Delmelle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 28, 2004 9:00 PM Subject: RE: Problem with SVG -Original Message- From: Johannes Franz [mailto:[EMAIL PROTECTED] Hi, FYI: since your original question also mentioned 'how many svgs can one embed before the OOMError occurs?', here's a little advice. You won't be able to accurately test this with just one SVG, you'd need to have quite a few and all different, because if it's the same one, FOP keeps it in a cache anyway. I haven't exactly tried myself, but I'm guessing that if you embed the same graphic once or 100 times, it shouldn't make that much of a difference... Besides that: But when i run fop i get the following error message: [ERROR] Batik not in class path [ERROR] Error while creating area : No ImageReader for this type of image (file:/home/johannes/AT_PI.vdo/diagram.svg) What's the problem? ... batik.jar seems to be added. From my fop.sh: DIRLIBS=${FOP_HOME}/lib/*.jar And batik.jar is located in /lib. So any other idea why this problem occurs? Hmm... I get the very same error you describe here when I try to render your supplied files. Very strange indeed... Only place this error message appears in FOP is in fop.image.analyser.SVGReader, as a result of a NoClassDefFoundError while trying to load the image using Batik's classes... I'm having no trouble viewing the SVG with Batik Squiggle, but I do encounter problems trying to rasterize it, albeit not a NCDFError Is it possible that Batik *is* loaded, but the rasterizer can't handle the SVG for some reason, so one of its classes is actually causing the error? Forcing FOP to deal with it, but that's not exactly what the message in that 'catch' block was meant for... In any case, you might want to check on batik-user, and ask if someone over there has a clue why this 'diagram.svg' won't work with their rasterizer. Greetz, Andreas - 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: Problem with SVG
> -Original Message- > From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] > > > FYI: since your original question also mentioned 'how many svgs can one > embed before the OOMError occurs?', here's a little advice. > > You won't be able to accurately test this with just one SVG, you'd need to > have quite a few and all different, because if it's the same one, ... IIC, they don't necessarily have to be different images, just differently _named_ images would be sufficient... Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with SVG
> -Original Message- > From: Johannes Franz [mailto:[EMAIL PROTECTED] Hi, FYI: since your original question also mentioned 'how many svgs can one embed before the OOMError occurs?', here's a little advice. You won't be able to accurately test this with just one SVG, you'd need to have quite a few and all different, because if it's the same one, FOP keeps it in a cache anyway. I haven't exactly tried myself, but I'm guessing that if you embed the same graphic once or 100 times, it shouldn't make that much of a difference... Besides that: > But when i run fop i get the following error message: > [ERROR] Batik not in class path > [ERROR] Error while creating area : No ImageReader for this type of image > (file:/home/johannes/AT_PI.vdo/diagram.svg) > > What's the problem? ... > batik.jar seems to be added. > > From my fop.sh: > DIRLIBS=${FOP_HOME}/lib/*.jar > > And batik.jar is located in /lib. So any other idea why this problem occurs? Hmm... I get the very same error you describe here when I try to render your supplied files. Very strange indeed... Only place this error message appears in FOP is in fop.image.analyser.SVGReader, as a result of a NoClassDefFoundError while trying to load the image using Batik's classes... I'm having no trouble viewing the SVG with Batik Squiggle, but I do encounter problems trying to rasterize it, albeit not a NCDFError Is it possible that Batik *is* loaded, but the rasterizer can't handle the SVG for some reason, so one of its classes is actually causing the error? Forcing FOP to deal with it, but that's not exactly what the message in that 'catch' block was meant for... In any case, you might want to check on batik-user, and ask if someone over there has a clue why this 'diagram.svg' won't work with their rasterizer. Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
Ok, this are my sample files. My commandline is: ./fop.sh -xml diagram.xml -xsl protocol-extern.xsl test.pdf Am Donnerstag, 28. Oktober 2004 16:36 schrieb [EMAIL PROTECTED]: > I can open this OK in Adobe's viewer. The only error I get is "bad CSS > selector". > > Can you send your command line? I'll try it on my side. > > -Lou > > > > > Johannes Franz >[EMAIL PROTECTED] rub.de> cc: > Subject: Re: Problem with > SVG 10/28/2004 06:34 > Please respond > to fop-user > > > > > > Perhaps the problem lies in the svg itself. > So i attach it to this email. > > Am Montag, 25. Oktober 2004 17:31 schrieb [EMAIL PROTECTED]: > > Add the batik.jar to your classpath. Here is a sample batch file that I > > use with FOP 0.20.3 on Windows 2000: > > > > set > > ppp=.;\bin\deploy\batik.jar;\bin\deploy\logkit-1.0.jar;\bin\deploy\avalon-f > > >ramework-4.0.jar;\bin\deploy\xerces-1.2.3.jar;\bin\deploy\xalan-2.0.0.jar; > >\b > > > >in\deploy\fop.jar > > > > java -cp %ppp% org.apache.fop.apps.Fop -s -d -xml %1 -xsl %2 -pdf > > debug.pdf > > > -c userconfig.xml > > > > Hope this helps. > > > > -Lou > > > > > > > > > > "Johannes Franz" > >> <[EMAIL PROTECTED]> rub.de> cc: > >Subject: Re: Problem with > > SVG 10/25/2004 10:32 > > Please respond > > to fop-user > > > > > > > > > > > > Ok, i have to include Batik. Could you perhaps explain how to do this? I > > don't exactly understand the faq. > > > > > > - Original Message - > > From: <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, October 25, 2004 1:30 PM > > Subject: Re: Problem with SVG > > > > > SVG is not natively supported through FOP - it requires Batik. Don't > > > forget to include the Batik jar that came with your FOP distribution. > > > > > > See http://xml.apache.org/fop/graphics.html#batik > > > or > > > http://xml.apache.org/fop/graphics.html#svg > > > > > > -Lou > > > > > > > > > > > > > > > Johannes Franz > > > > > [EMAIL PROTECTED] > > > rub.de> cc: > > > Subject: Problem with SVG > > > 10/25/2004 03:41 > > > Please respond > > > to fop-user > > > > > > > > > > > > > > > > > > Hi there, > > > > > > i wanted to know how many svg images fop can embed before the > > > outofmemory-error occurs. So i searched the web for a SVG, which is > > about > > > > 70kb large. But when i run fop i get the following error message: > > > [ERROR] Batik not in class path > > > [ERROR] Error while creating area : No ImageReader for this type of > > image > > > > (file:/home/johannes/AT_PI.vdo/diagram.svg) > > > > > > What's the problem? > > > > > > > > > - > > > 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] > > > > - > > 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] > > (See attached file: diagram.svg) > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] diagram.svg diagram.svg diagram.svg http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format"; exclude-result-prefixes="fo" xmlns:tcg-te="http://www.ruhr-uni-bochum.de/";> http://www.w3.org/1999/XSL/Format";> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
I can open this OK in Adobe's viewer. The only error I get is "bad CSS selector". Can you send your command line? I'll try it on my side. -Lou Johannes Franz cc: Subject: Re: Problem with SVG 10/28/2004 06:34 Please respond to fop-user Perhaps the problem lies in the svg itself. So i attach it to this email. Am Montag, 25. Oktober 2004 17:31 schrieb [EMAIL PROTECTED]: > Add the batik.jar to your classpath. Here is a sample batch file that I > use with FOP 0.20.3 on Windows 2000: > > set > ppp=.;\bin\deploy\batik.jar;\bin\deploy\logkit-1.0.jar;\bin\deploy\avalon-f >ramework-4.0.jar;\bin\deploy\xerces-1.2.3.jar;\bin\deploy\xalan-2.0.0.jar;\b >in\deploy\fop.jar > > java -cp %ppp% org.apache.fop.apps.Fop -s -d -xml %1 -xsl %2 -pdf debug.pdf > -c userconfig.xml > > Hope this helps. > > -Lou > > > > > "Johannes Franz" ><[EMAIL PROTECTED]> rub.de> cc: >Subject: Re: Problem with > SVG 10/25/2004 10:32 > Please respond > to fop-user > > > > > > Ok, i have to include Batik. Could you perhaps explain how to do this? I > don't exactly understand the faq. > > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, October 25, 2004 1:30 PM > Subject: Re: Problem with SVG > > > SVG is not natively supported through FOP - it requires Batik. Don't > > forget to include the Batik jar that came with your FOP distribution. > > > > See http://xml.apache.org/fop/graphics.html#batik > > or > > http://xml.apache.org/fop/graphics.html#svg > > > > -Lou > > > > > > > > > > Johannes Franz > > > [EMAIL PROTECTED] > > rub.de> cc: > > Subject: Problem with SVG > > 10/25/2004 03:41 > > Please respond > > to fop-user > > > > > > > > > > > > Hi there, > > > > i wanted to know how many svg images fop can embed before the > > outofmemory-error occurs. So i searched the web for a SVG, which is about > > 70kb large. But when i run fop i get the following error message: > > [ERROR] Batik not in class path > > [ERROR] Error while creating area : No ImageReader for this type of image > > (file:/home/johannes/AT_PI.vdo/diagram.svg) > > > > What's the problem? > > > > > > - > > 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] > > - > 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] (See attached file: diagram.svg) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] diagram.svg Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
Perhaps the problem lies in the svg itself. So i attach it to this email. Am Montag, 25. Oktober 2004 17:31 schrieb [EMAIL PROTECTED]: > Add the batik.jar to your classpath. Here is a sample batch file that I > use with FOP 0.20.3 on Windows 2000: > > set > ppp=.;\bin\deploy\batik.jar;\bin\deploy\logkit-1.0.jar;\bin\deploy\avalon-f >ramework-4.0.jar;\bin\deploy\xerces-1.2.3.jar;\bin\deploy\xalan-2.0.0.jar;\b >in\deploy\fop.jar > > java -cp %ppp% org.apache.fop.apps.Fop -s -d -xml %1 -xsl %2 -pdf debug.pdf > -c userconfig.xml > > Hope this helps. > > -Lou > > > > > "Johannes Franz" ><[EMAIL PROTECTED]> rub.de> cc: >Subject: Re: Problem with > SVG 10/25/2004 10:32 > Please respond > to fop-user > > > > > > Ok, i have to include Batik. Could you perhaps explain how to do this? I > don't exactly understand the faq. > > > - Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, October 25, 2004 1:30 PM > Subject: Re: Problem with SVG > > > SVG is not natively supported through FOP - it requires Batik. Don't > > forget to include the Batik jar that came with your FOP distribution. > > > > See http://xml.apache.org/fop/graphics.html#batik > > or > > http://xml.apache.org/fop/graphics.html#svg > > > > -Lou > > > > > > > > > > Johannes Franz > > > [EMAIL PROTECTED] > > rub.de> cc: > > Subject: Problem with SVG > > 10/25/2004 03:41 > > Please respond > > to fop-user > > > > > > > > > > > > Hi there, > > > > i wanted to know how many svg images fop can embed before the > > outofmemory-error occurs. So i searched the web for a SVG, which is about > > 70kb large. But when i run fop i get the following error message: > > [ERROR] Batik not in class path > > [ERROR] Error while creating area : No ImageReader for this type of image > > (file:/home/johannes/AT_PI.vdo/diagram.svg) > > > > What's the problem? > > > > > > - > > 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] > > - > 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] <>- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
Hi, batik.jar seems to be added. From my fop.sh: DIRLIBS=${FOP_HOME}/lib/*.jar And batik.jar is located in /lib. So any other idea why this problem occurs? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
Add the batik.jar to your classpath. Here is a sample batch file that I use with FOP 0.20.3 on Windows 2000: set ppp=.;\bin\deploy\batik.jar;\bin\deploy\logkit-1.0.jar;\bin\deploy\avalon-framework-4.0.jar;\bin\deploy\xerces-1.2.3.jar;\bin\deploy\xalan-2.0.0.jar;\bin\deploy\fop.jar java -cp %ppp% org.apache.fop.apps.Fop -s -d -xml %1 -xsl %2 -pdf debug.pdf -c userconfig.xml Hope this helps. -Lou "Johannes Franz" rub.de> cc: Subject: Re: Problem with SVG 10/25/2004 10:32 Please respond to fop-user Ok, i have to include Batik. Could you perhaps explain how to do this? I don't exactly understand the faq. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 25, 2004 1:30 PM Subject: Re: Problem with SVG > > SVG is not natively supported through FOP - it requires Batik. Don't > forget to include the Batik jar that came with your FOP distribution. > > See http://xml.apache.org/fop/graphics.html#batik > or > http://xml.apache.org/fop/graphics.html#svg > > -Lou > > > > > Johannes Franz > [EMAIL PROTECTED] > rub.de> cc: > Subject: Problem with SVG > 10/25/2004 03:41 > Please respond > to fop-user > > > > > > Hi there, > > i wanted to know how many svg images fop can embed before the > outofmemory-error occurs. So i searched the web for a SVG, which is about > 70kb large. But when i run fop i get the following error message: > [ERROR] Batik not in class path > [ERROR] Error while creating area : No ImageReader for this type of image > (file:/home/johannes/AT_PI.vdo/diagram.svg) > > What's the problem? > > > - > 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] > > - 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: Problem with SVG
Ok, i have to include Batik. Could you perhaps explain how to do this? I don't exactly understand the faq. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 25, 2004 1:30 PM Subject: Re: Problem with SVG SVG is not natively supported through FOP - it requires Batik. Don't forget to include the Batik jar that came with your FOP distribution. See http://xml.apache.org/fop/graphics.html#batik or http://xml.apache.org/fop/graphics.html#svg -Lou Johannes Franz rub.de> cc: Subject: Problem with SVG 10/25/2004 03:41 Please respond to fop-user Hi there, i wanted to know how many svg images fop can embed before the outofmemory-error occurs. So i searched the web for a SVG, which is about 70kb large. But when i run fop i get the following error message: [ERROR] Batik not in class path [ERROR] Error while creating area : No ImageReader for this type of image (file:/home/johannes/AT_PI.vdo/diagram.svg) What's the problem? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
>So i searched the web for a SVG, which is about 70kb large 70 kb is rather small. In our application, each page sequence may embed more than 100 external SVG graphics, 15 kb each. I give 128 Mb to the JVM and get no OutOfMemoryError, but our application is rather peculiar and there is only one user creating a pdf at a time. Mat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
SVG is not natively supported through FOP - it requires Batik. Don't forget to include the Batik jar that came with your FOP distribution. See http://xml.apache.org/fop/graphics.html#batik or http://xml.apache.org/fop/graphics.html#svg -Lou Johannes Franz cc: Subject: Problem with SVG 10/25/2004 03:41 Please respond to fop-user Hi there, i wanted to know how many svg images fop can embed before the outofmemory-error occurs. So i searched the web for a SVG, which is about 70kb large. But when i run fop i get the following error message: [ERROR] Batik not in class path [ERROR] Error while creating area : No ImageReader for this type of image (file:/home/johannes/AT_PI.vdo/diagram.svg) What's the problem? - 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: Problem with SVG only Black & White
Sam Prokop wrote: i´ve got some svg made by jfree-chart, they look nice in the batik-browser, but if i render them with fop 0.20.3 to pdf they are just black and white. This hasn't come up before. As a wild guess check whether your SVG contains transparent stuff or certain other shading effects, FOP can't render them properly into PDF. Apart from this, I'd have to resort to mind reading, which I'm very bad at, unless you post your SVG code. It would be nice if you trimmed it down as much as possible. This may also reveal the problem to you. J.Pietschmann