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>
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
Gregoire
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]