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