On 2/08/2013 12:14, ?? wrote:
I think it's a bug in PdfContentStreamProcessor.getColor(int, List<PdfObject>)
for (int i = 0; i < nOperands; i++) {
     c[i] = ((PdfNumber)operands.get(i)).floatValue();
}

I've taken a look at the code.

The method getColor() you're referring to gets called whenever one of the following operators is encounterd: g, G, rg, RG, k, K, sc, SC, scn, SCN.

In case of g, G, the value of nOperands is 1 because one gray value is expected. In case of rg, RG, the value of nOperands is 3, because we expect a value for red, green and blue. In case of k, K, the value of nOperands is 4, because we expect a value for cyan, magenta, yellow and black.

In case of sc, SC, scn and SCN, we look at the value previously set by cs or CS. If it's DEVICEGRAY, the value of nOperands is 1 because one gray value is expected. If it's DEVICERGB, RG, the value of nOperands is 3, because we expect a value for red, green and blue. If it's DEVICECMYK, the value of nOperands is 4, because we expect a value for cyan, magenta, yellow and black.
Any other value is ignored, because we don't support other color spaces yet.

Knowing this, can you tell us which problem you're experiencing?
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to