xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregoire Meier <me...@epicard.ch>
Subject AFP with SVG
Date Thu, 08 Sep 2011 08:46:29 GMT
Hi all,

I have a problem with an svg into a FO document :

<fo:block>
	<fo:instream-foreign-object content-width="20pt" content-height="20pt">
		<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="20pt" 
height="20pt">
		<svg:g style="fill:red; stroke:#000000">
		<svg:rect x="0" y="0" width="15" height="15"/>
		<svg:rect x="5" y="5" width="15" height="15"/>
		</svg:g>
		</svg:svg>
	</fo:instream-foreign-object>
</fo:block>

When I transform to a PDF, the SVG has its correct size. When I transform to an 
AFP, the SVG seems to be enlarged (may be 5 times) and as the image is clipped, 
I can only see the upper left corner of my svg, but enlarged...

My fop.xconf AFP renderer part looks like :
<renderer mime="application/x-afp">
	<renderer-resolution>240</renderer-resolution>  
	<images mode="b+w" bits-per-pixel="8" native="true"/>

	<fonts>
	[...]
	</fonts>
</renderer>

Is there anyone who has an idea how to keep the SVG correct size ???

Many thanks 
Gregoire


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message