Peter,

Get yourself a copy of the pdf ref manual and read the sections on rendering and transparency. It is all explained in excruciating detail. Alternatively, just translate into java the code snippet I posted yesterday and incorporate it into your own, and everything should work fine. This assumes that all your images and graphics use the RGB color model.

If I have understood my readings correctly, what is happening is that acrobat defaults to the cmyk color space when it does the compositing calculations to render transparency. Whether the transparent objects are vector graphics or images is irrelevant. So you are basically going from RGB->CMYK->RGB, which can result in colors significantly different from the originals. As Leonard mentioned, you set a blending colorspace to explicity tell the pdf viewer app to use whichever colorspace you want in the compositing calculations. This way you can avoid the RGB to CMYK conversion.

The code you show below won't work. It suggests to me that maybe you are trying to use an ICC profile? I can post an example of how to do that if you need it.

Cheers,

Eliot

----- Original Message -----
From: Peter van Raamsdonk <[EMAIL PROTECTED]>
Cc:
Date: Monday, March 19 2007 1:54 PM
Subject: Re: [iText-questions] Color looks different after drawingparticular image types
Thanks Eliot,
I was poking around with the writer in java.
writer.setDefaultColorspace(PdfName.COLORSPACE, PdfName.DEFAULTRGB);
or
PdfName.ALTERNATE, PdfName.DEFAULTRGB
But that didn't quite hack it
I must admit that I don't grasp the variables, first one is from (acts as trigger) and the other one is to (action, convert to)?
I will try some more, easy enough :)
Bye Peter


Play online games with your friends with Messenger _______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Sent with DeskNow Lite - Free mail & groupware server http://www.desknow.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to