Re: embedding svg in xsl:fo generates nullpointer, help ...
"Manuel Moons" <[EMAIL PROTECTED]> wrote: > I'm trying to put an svg in my xsl:fo document and then trying to generate a > pdf document. But when doing this I get the following: > ERROR 10106 [fop ] (): Could not set base URL for svg > java.net.MalformedURLException: java.lang.NullPointerException > This can happen for example if you feed FOP with a SAX stream. I fixed this with org.apache.fop.configuration.Configuration.put("baseDir", "file:///foo/bar"); somewhere before the invocation. The value supplied has to be a valid URL but it is never read unless you use internal references in your SVG. If you do the latter, you might be in trouble. > It also seems that it starts on a new page every time I use an svg That's a completely different problem. Maybe your SVGs are too large. BTW giving width/height in px is unwise and may be the cause of the problem. HTH J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
embedding svg in xsl:fo generates nullpointer, help ...
Hello, I'm trying to put an svg in my xsl:fo document and then trying to generate a pdf document. But when doing this I get the following: ERROR 10106 [fop ] (): Could not set base URL for svg java.net.MalformedURLException: java.lang.NullPointerException Now I have to admit that it does seem to do something, I'm getting my svg in my pdf document but the stacktrace that I'm getting is not so nice, what am I doing wrong? Here is the tag that I am using: http://www.w3.org/2000/svg"; width="542px" height="505px"> Vertical text 16.0 It also seems that it starts on a new page every time I use an svg Can anybody help me? Greetings Manuel _ Meld je aan bij de grootste e-mailservice wereldwijd met MSN Hotmail: http://www.hotmail.com/nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]