Jay Chiu wrote:

Chris and Thomas,

Can you please give me some help? Please tell me which files I
should change to solve the problem.

I have run your sample, and the PNG files referenced by fo:external-graphic are indeed much better quaility than those embedded in SVG using svg:image. I then tried running FOP using -awt option instead of generating a PDF and found that the quality of the PNG files in fo:external-graphic are bad. That is because the AWT renderer probably uses the PDFGraphics2D.drawImage method that you mention.


I only saw part of Thomas's response, in which he seems to be implying that the problem is in Batik, but it does seem that there are defficiencies in FOP's image handling algorithms. I believe the images look okay in the PDF Renderer because responsibility for actually rendering the image is passed to acrobat reader. FOP just inserts the image into the PDF. I dont know if theres a way to tell the PDF transcoder to do the same.

Perhaps one of the more experienced committers can shed some more light on this matter.

Chris




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to