That solution is EXCELLENT - and definitely what I recommend. Leonard
On Mar 19, 2007, at 5:01 AM, Eliot M Cline wrote: > We had a similar issue with vector graphics and layers that utilize > transparency. I solved our problem after a long time studying the > pdf ref manual and looking at pdf docs created with Illustrator. I > noticed PDF's created with Ilustrator have the page containing > transparent objects set to be a transparency group and set the > group color space accordingly. > > Here is the relevant code (VB) I use to achieve this: > > > Dim pp As PdfDictionary = New PdfDictionary > > pp.Put(PdfName.TYPE, PdfName.GROUP) > pp.Put(PdfName.S, PdfName.TRANSPARENCY) > pp.Put(PdfName.CS, PdfName.DEVICERGB) > cb.PdfWriter.Group = pp > cb.SetDefaultColorspace(PdfName.CS, PdfName.DEVICERGB) > > cb is a previously declared PdfContentByte and this code is called > right after the page containing transparent objects is created with > the NewPage() method. > > This is the only way I could get our colors displaying the way they > were meant to be viewed. Any comments as to the correctness of this > approach are welcome! > ------------------------------------------------------------------------- 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/
