Bug 36505

Summary: [PATCH] SVG bugs in Java2D renderers
Product: Fop - Now in Jira Reporter: Richard Wheeldon <richardw>
Component: svgAssignee: fop-dev
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch for java2d/svg bugs

Description Richard Wheeldon 2005-09-05 17:21:44 UTC
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.
Comment 1 Richard Wheeldon 2005-09-05 17:23:29 UTC
Created attachment 16310 [details]
Patch for java2d/svg bugs
Comment 2 Jeremias Maerki 2005-09-06 12:20:11 UTC
Applied with comments and modifications. See revision log. Thanks!

http://svn.apache.org/viewcvs?rev=278966&view=rev
Comment 3 Glenn Adams 2012-04-01 06:28:18 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed