Jay Chiu wrote:
Chris,
I have successfylly solved the problem. I think it is a fop bug.
It does look that way.
I have just changed 2 lines of PDFGraphics2D.java:
line 289: and line 296
FROM: Dimension size = new Dimension(imageInfo.width * ratio,
imageInfo.height * 3);
and
g.fillRect(0, 0, imageInfo.width * ratio, imageInfo.height *
3);
TO:
Dimension size = new Dimension(imageInfo.width * ratio,
imageInfo.height);
and
g.fillRect(0, 0, imageInfo.width * ratio, imageInfo.height);
I think it is not necessary to enlarge the image 3 times.
yes that does seem odd. I wonder why the image is enlarged by multiple of 3. That does seem like a bug.
Another thing I found out is that JIMI support is not required
for png file in svg. So probably fop should be able suport png
file natively.
I am not sure what you mean by this statement. Can you elaborate?
Please have add my change change into your next release of FOP.
Thanks for your persistence in solving this problem Jay.
Chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
