xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Reynolds <Tommy.Reyno...@MegaCoder.com>
Subject Re: Help with external SVG graphic [SOLVED]
Date Fri, 01 Apr 2005 21:43:43 GMT
Uttered "J.Pietschmann" <j3322ptm@yahoo.de>, spake thus:

> Tommy Reynolds wrote:
> > I have an XSL-FO snippet:
> > <fo:block xmlns:xlink="http://www.w3.org/1999/xlink" space-after="14pt">
> > 	<fo:external-graphic src="syscall.svg" left="6pt" right="6pt" 
> > 		width="4in" height="1.6in" />
> > </fo:block>
> > with this SVG file:
> > <svg viewBox="0 0 725 250" xmlns="http://www.w3.org/2000/svg" version="1.1">
> > The problem is that FOP renders this as an extremely tiny graphic.
> This has something to do with negotiating the view box between FOP and
> the SVG renderer (Batik), and the fact that you didn't supply width
> and heigt for the SVG itself. Just adding w&h to the SVG top level
> should fix this:

Adding explicit heights only provided marginal improvement.

But when I used batik to render to a .jpg file, a native FOP format,
the image looked much better.

Thanks

Mime
View raw message