Bug 36505 - [PATCH] SVG bugs in Java2D renderers
Summary: [PATCH] SVG bugs in Java2D renderers
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: svg (show other bugs)
Version: trunk
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-05 17:21 UTC by Richard Wheeldon
Modified: 2012-04-01 06:28 UTC (History)
0 users



Attachments
Patch for java2d/svg bugs (4.63 KB, patch)
2005-09-05 17:23 UTC, Richard Wheeldon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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