Re: [iText-questions] Problem with transparent images

2008-02-21 Thread Stephan Michels
2008/2/21, Eliot M Cline [EMAIL PROTECTED]: The only way I could keep acrobat reader from changing the color space to CMYK was to set the entire page containing our graphics to a transparency group and then set the colorspace accordingly. See the VB code snippet below. Great! That worked.

Re: [iText-questions] Problem with transparent images

2008-02-21 Thread Leonard Rosenthol
Bruno/Paulo - can you guys please add this as a higher level API call (say, on a PdfPage) for the future? Thanks, Leonard On Feb 20, 2008, at 7:45 PM, Eliot M Cline wrote: 2008/2/20, Leonard Rosenthol [EMAIL PROTECTED]: Hmm, doesn't help :-( I tried every blend mode, but this doesn't

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread 1T3XT info
Stephan Michels wrote: The Acrobat Reader seems to mix or change colors, which are used in a page if I use a image with an alpha channel. I tracked down the problem to the method Image.getInstance(java.awt.Image, java.awt.Color, boolean). The problem occurs if the method sets the

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread Stephan Michels
2008/2/20, 1T3XT info [EMAIL PROTECTED]: Stephan Michels wrote: I made following screenshots to show the problem: I'm not sure what I'm supposed to see. In one screen there's a thicker border than in the other three screens. I guess that's your problem, but... I don't know what you are

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread Leonard Rosenthol
On Feb 20, 2008, at 3:26 AM, Stephan Michels wrote: Good point, that the Acrobat Reader changes the colors to the CMYK color space was one of my assumptions. Hmm, so what can I do? How I can prevent that the Acrobat Reader change to the CMYK color space? Tell the PDF consumer what

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread Stephan Michels
2008/2/20, Leonard Rosenthol [EMAIL PROTECTED]: On Feb 20, 2008, at 3:26 AM, Stephan Michels wrote: Good point, that the Acrobat Reader changes the colors to the CMYK color space was one of my assumptions. Hmm, so what can I do? How I can prevent that the Acrobat Reader change to the

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread Leonard Rosenthol
On Feb 20, 2008, at 7:59 AM, Stephan Michels wrote: 2008/2/20, Leonard Rosenthol [EMAIL PROTECTED]: Tell the PDF consumer what colorspace to use by explicitly setting the transparency blending space! And how can I set the default transparency blending space with itext? There is an

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread 1T3XT info
Stephan Michels wrote: And how can I set the default transparency blending space with itext? This is explained in chapter 12 of iText in Action. Some pseudocode (so that you can Google for the keywords): PdfGState gs = new PdfGState(); gs.setBlendMode(choose state); cb.setState(gs); With cb a

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread Leonard Rosenthol
On Feb 20, 2008, at 9:28 AM, Stephan Michels wrote: 2008/2/20, 1T3XT info [EMAIL PROTECTED]: Stephan Michels wrote: And how can I set the default transparency blending space with itext? Some pseudocode (so that you can Google for the keywords): PdfGState gs = new PdfGState();

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread Stephan Michels
2008/2/20, 1T3XT info [EMAIL PROTECTED]: Stephan Michels wrote: And how can I set the default transparency blending space with itext? Some pseudocode (so that you can Google for the keywords): PdfGState gs = new PdfGState(); gs.setBlendMode(choose state); cb.setState(gs); Hmm, doesn't

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread Stephan Michels
2008/2/20, Leonard Rosenthol [EMAIL PROTECTED]: Hmm, doesn't help :-( I tried every blend mode, but this doesn't prevent Acrobat from switching to the CMYK color space. You need to set the COLORSPACE to DeviceRGB... Thanks, but how can I achieve it? I tried 1. ImgTemplate image2

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread Leonard Rosenthol
You need to put the colorspace into the blending space that you were workign with before... Look at the PDF Reference for details on page blending spaces... Leonard On Feb 20, 2008, at 10:32 AM, Stephan Michels wrote: 2008/2/20, Leonard Rosenthol [EMAIL PROTECTED]: Hmm, doesn't help :-( I

Re: [iText-questions] Problem with transparent images

2008-02-20 Thread Eliot M Cline
2008/2/20, Leonard Rosenthol [EMAIL PROTECTED]: Hmm, doesn't help :-( I tried every blend mode, but this doesn't prevent Acrobat from switching to the CMYK color space. You need to set the COLORSPACE to DeviceRGB... Thanks, but how can I achieve it? I tried 1. ImgTemplate

[iText-questions] Problem with transparent images

2008-02-19 Thread Stephan Michels
Hi, I have a problem with the Adobe Acrobat Reader and PDFs generated by iText. The Acrobat Reader seems to mix or change colors, which are used in a page if I use a image with an alpha channel. I tracked down the problem to the method Image.getInstance(java.awt.Image, java.awt.Color,