Due to insufficient precision of the transformation matrix, shapes are not correctly positioned on larger graphics. As lines are rendered differently this results in ugly, unusable PDF output. The resolution is simple to provide a better precision in the PDF output (see attached patch).
Created attachment 15816 [details] patch to write transformation matrix with higher precision
Thanks for the patch. Do you have an example that shows the effect of your change that you could attach to this issue?
Created attachment 15829 [details] sample FO, SVG and resulting PDF This bug is more complex than I have thought firstly. My patch helps only when using the Batik rasterizer (Batik 1.6 with patched pdf-transcoder.jar (alias fop-transcoder-allinone.jar in fop trunk)). commandline: java -jar batik-rasterizer.jar -m application/pdf bug35918.svg But if you use the FOP directly, the bug still exists. commandline: fop bug35918.fo bug35918.pdf
I did a few things on PDFGraphics2D to improve the situation: http://svn.apache.org/viewcvs?rev=240344&view=rev I didn't actually apply your patch but followed your example while refactoring the code. Thanks all the same! Your test case looks good to me now.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed