Call PdfWriter.setRgbTransparencyBlending(true) to fix the colors. See the
javadoc of the method for an explanation.
Paulo
> -----Original Message-----
> From: ulrich gratz [mailto:[email protected]]
> Sent: Wednesday, September 09, 2009 2:06 PM
> To: [email protected]
> Subject: [iText-questions] PNG causes pale colors
>
> Dear all,
>
> I am facing the following problem:
> As soon as I add a PNG with transparent background to a page,
> the colors of text on this page somehow pale.
> This does not happen, if I add e.g. a normal JPEG.
>
> Has anyone ever faced this behaviour ?
>
> Thanks in advance,
> Ulrich
> --
> Jetzt kostenlos herunterladen: Internet Explorer 8 und
> Mozilla Firefox 3 -
> sicherer, schneller und einfacher!
> http://portal.gmx.net/de/go/chbrowser
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/