Bug 41133 - SVG image colors are partially wrong
Summary: SVG image colors are partially wrong
Status: CLOSED WONTFIX
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.5
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-08 03:51 UTC by Bernhard Jakob
Modified: 2012-04-01 13:49 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Jakob 2006-12-08 03:51:14 UTC
The SVG image in the xsl-fo document below, contains the color rgb(243,220,241)

If FOP (with option myDriver.setRenderer(Driver.RENDER_PDF);) converts this 
xsl-fo document to a .pdf file, the the color in the .pdf file will be 
set/displayed: rgb(255,220,241).

The same occurs if we transform the xsl-fo document to pdf using XML Spy.

It seems so, that FOP set the color values 243 and higher to 255.

If we run FOP and render a SVG, then the color is ok. 
If we import the SVG image to Open Office and save it as a .pdf file, then the 
color is correct too.

SVG image in xsl-fo document:
=============================
<fo:block space-before="1.838452mm" space-after="0.0mm" margin-left="0.0mm" 
white-space-collapse="false" text-align="center" hyphenate="false">
				<fo:instream-foreign-object>
					<svg 
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" 
style="stroke-dasharray:none; shape-rendering:auto; font-family:'sansserif'; 
text-rendering:auto; fill-opacity:1; color-interpolation:auto; color-
rendering:auto; font-size:12; fill:black; stroke:black; image-rendering:auto; 
stroke-miterlimit:10; stroke-linecap:square; stroke-linejoin:miter; font-
style:normal; stroke-width:1; stroke-dashoffset:0; font-weight:normal; stroke-
opacity:1;" width="60mm" preserveAspectRatio="xMinYMin" viewBox="0 0 230 111" 
height="29mm">
						<defs id="genericDefs"/>
						<g transform="translate(0,0)">
							<g style="fill:rgb
(243,220,241); stroke:rgb(243,220,241);">
								<rect x="98" 
y="74" width="112" style="stroke:none;" height="26"/>
							</g>
						</g>
					</svg>
				</fo:instream-foreign-object>
			</fo:block>
Comment 1 Chris Bowditch 2006-12-11 07:00:13 UTC
There was a bug in 0.20.5 with RGB color values greater than 243 which has 
been reported previously. This bug is fixed in the newer FOP versions, i.e. 
0.92beta and won't be fixed in 0.20.5, which is no longer maintained.
Comment 2 Glenn Adams 2012-04-01 13:49:47 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs