xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregoire Meier <me...@epicard.ch>
Subject Re: AFP with SVG
Date Fri, 09 Sep 2011 07:57:23 GMT
Hi all,

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

	<fo:instream-foreign-object content-width="20pt" content-height="20pt">
		<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="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"/>

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">
	<images mode="b+w" bits-per-pixel="8" native="true"/>


Some more informations :

in the fop.xconf, the image settings are 

Into the AFP generated, the DPI is correctly setted to DPI 72x72
IPD Size=57x57 DPI=72x72
BUT the image generated by the svg renderer seems to be at a larger DPI (may be 
480 or something like that) 

Is there anyone who has an idea how to keep the SVG correct DPI ??? or how to 
set the correcct image DPI ?

Many thanks 

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

View raw message