Problem rendering SVG graphic

2003-06-19 Thread Howard Miller
Hi, I am new to fop (and SVG) so I hope this isn't a stupid question... I am trying to embed an external SVG graphic file into a fop document. I am simply using fo:external-graphic src=url(image.svg) when I run fop it falls over with a Java excecution trace. The first few lines look like...

Re: Problem rendering SVG graphic

2003-06-19 Thread J.Pietschmann
Howard Miller wrote: Exception in thread main java.lang.NoClassDefFoundError ... java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron ment.java:62) Looks like you got a headless server. See http://xml.apache.org/fop/faq.html#svg-headless J.Pietschmann

Re: Problem rendering SVG

2003-05-07 Thread Ozhan Hassan
On Mon, 5 May 2003, Jeremias Maerki wrote: Try setting the log level to LEVEL_DEBUG and watch the log. Maybe that helps finding out what's wrong. Without actually running your code, I'd say it should be ok. What you can also try is to disable the stylesheet (by using the identity

Re: Problem rendering SVG

2003-05-07 Thread Jeremias Maerki
You didn't say whether setting the log level to LEVEL_DEBUG helped or not. Even if your XSLT is ok, my suggestions still apply. I've found bugs that way before. So if it's really the SVG that's having a problem check if Batik is in the classpath and if you're using the version that's coming with

Re: Problem rendering SVG

2003-05-07 Thread Ozhan Hassan
On Wed, 7 May 2003, Jeremias Maerki wrote: You didn't say whether setting the log level to LEVEL_DEBUG helped or not. Even if your XSLT is ok, my suggestions still apply. I've found bugs that way before. So if it's really the SVG that's having a problem check if Batik is in the classpath and

Re: Problem rendering SVG

2003-05-07 Thread Ozhan Hassan
Hi, One more interesting point I should address. I have been running my application on a Solaris platform, where it has been crashing. However, I just tried running it on a Windows PC and it worked fine, didn't crash. I hope this is helpful to anyone who may know why this is. Regards, Ozhan

Re: Problem rendering SVG

2003-05-07 Thread Jeremias Maerki
Ok, in this case take the examples/embedding/java/embedding/ExampleXML2PDF.java and adjust it to your usecase. Check if it works with that. I've tested it with your XSL snippet on my workstation and it worked. On 07.05.2003 08:22:58 Ozhan Hassan wrote: Sorry, I forgot to mention that. I did try

Re: Problem rendering SVG

2003-05-07 Thread Jeremias Maerki
Is that a headless server? In this case http://xml.apache.org/fop/faq.html#svg-headless may help. On 07.05.2003 08:45:32 Ozhan Hassan wrote: One more interesting point I should address. I have been running my application on a Solaris platform, where it has been crashing. However, I just tried

Problem rendering SVG

2003-05-05 Thread Ozhan Hassan
Hi, I am experiencing some a weird problem while trying to render some SVG. I have a simple java program which reads in an XML file and an XSLT stylesheet (containing some SVG) and render it out to PDF. What happens is my terminal just frezzes, and I can't kill the process or do anything else.