The following bugs have been found in the Java2D renderer's SVG handling: 1. Whenever two svg images appear on the same page, the second one disappears completely. This was caused by the translate at the end of renderSVGDocument method not being the correct inverse of the preceding one. 2. Any attempt to scale the image failed. Fixed by using the position's width and height rather than the image's. 3. Any attempt to use an image larger than 100x100 caused erroneous cropping. Fixed by scaling as above. However, if the image is larger than 100x100 and no viewbox is defined in the svg file, cropping will still occur. This restriction also holds for PDF (and other?) renderers.
Created attachment 16310 [details] Patch for java2d/svg bugs
Applied with comments and modifications. See revision log. Thanks! http://svn.apache.org/viewcvs?rev=278966&view=rev
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed