if (colorSpace != null)
{
PDIndexed indexed = (PDIndexed) colorSpace;
colorSpace = indexed.getBaseColorSpace();
COSInteger colorValue = (COSInteger)arguments.get(0);
colorInstance.setColorSpaceValue(indexed.calculateColorValues(colorValue.intValue()));
}
}
}