Is there any way I can use the GIF image format and keep the color of the image? The reason I cannot use the PNG file is because JDK 1.4 has a bug which crash the JVM when using the java.awt.color.ICC_Profile.getInstance
(ICC_Profile). I have to restart my application server twice a day on an IBM iSeries, and iSeries doesn't have the JDK 1.5 yet. Please see the following links for more detail:
On 10/30/06, Paulo Soares <[EMAIL PROTECTED]> wrote:
The difference is that the PNG colorspace is ICC based and the GIF is
device based. This means that the GIF will have a different color
depending on the device where it's printed or viewed. By the way, iText
doesn't change the image colorspace.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On
> Behalf Of Billy Footmark
> Sent: Monday, October 30, 2006 2:32 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] 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 <[EMAIL PROTECTED] > wrote:
>
> Post the image, we are not psychics.
>
> Paulo
>
> ----- Original Message -----
> From: "Billy Footmark" < [EMAIL PROTECTED]>
> To: <[email protected]>
> 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
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.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
