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 09:52:07 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>

Some more informations :

in the fop.xconf, the image settings are 
<source-resolution>72</source-resolution>
<target-resolution>72</target-resolution>

Something seems strange....
----------------------------

Into the IPD field into the AFP, the DPI is setted :
IPD Size 57x57 DPI 7x7  (according to AFPexplorer)
instead of 
IPD Size 57x57 DPI 72x72  

If I look into the FieldData, I have 00 48 which means 72, but if I open the 
same image with a correct ouptut, the DPI is 
IPD Size 57x57 DPI 72x72  (always according to AFPexplorer)
with FieldData of 02 D0 whixh means 720 !

As I understand, the DPI in the FieldData sould be 10 times the DPI, but the 
FOP renderer set the DPI as it receives !!!! Is this a bug ? is this a 
configuration setting ?????

Any ideas is wlecome....

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