// ---- If CA is present only the value 1.0 is authorized
Float fca = COSUtils.getAsFloat(uCA, cosDocument);
Integer ica = COSUtils.getAsInteger(uCA, cosDocument);
if (!(fca != null && fca == 1.0f) && !(ica != null && ica == 1))
{
context.addValidationError(new ValidationError(ERROR_TRANSPARENCY_EXT_GS_CA,
"CA entry in a ExtGState is invalid"));
}
}
if (lCA != null)
{
// ---- If ca is present only the value 1.0 is authorized
Float fca = COSUtils.getAsFloat(lCA, cosDocument);
Integer ica = COSUtils.getAsInteger(lCA, cosDocument);
if (!(fca != null && fca == 1.0f) && !(ica != null && ica == 1))
{
context.addValidationError(new ValidationError(ERROR_TRANSPARENCY_EXT_GS_CA,
"ca entry in a ExtGState is invalid."));
}
}
}