By Date: <-- -->
By Thread: <-- -->

Image color changed inside a PDF



Here is the image that I am trying to add as a watermark image to the PDF document and the color changed after the PDF is generated.  One interesting thing is PNG image format work fine, but not the GIF. 
Thanks.

 
On 10/27/06, Paulo Soares <psoares (at) consiste.pt> wrote:
Post the image, we are not psychics.

Paulo

----- Original Message -----
From: "Billy Footmark" < footmark00 (at) gmail.com>
To: <iText-questions (at) lists.sourceforge.net>
Sent: Friday, October 27, 2006 10:06 PM
Subject: [iText-questions] Image color changed inside a PDF


> Hi,
>
> I am using iText to include an image as a watermark, the image itself is
> transparence with grey text, but it turn out to be some orange color.
> And the logo image with red background color turned to black.  Can someone
> give me idea how to fix it.  Thanks in advance.  Here are the code:
>
> PdfContentByte under;
> PdfContentByte over;
> Image waterMarkImg = Image.getInstance(waterMark_filename);
> waterMarkImg.scalePercent(70);
> waterMarkImg.setAbsolutePosition(80, 280);
> under = newDocument.getUnderContent(1);
> under.addImage (waterMarkImg);
> newDocument.close();
>
> Regards,
> William


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Attachment: Watermark.png
Description: PNG image

Attachment: Watermark.GIF
Description: GIF image

Attachment: Google_with_GIF_watermark.PDF
Description: Adobe PDF document

Attachment: Google_with_PNG_watermark.PDF
Description: Adobe PDF document

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions