* the list of error to update if the validation fails.
* @return true if the color space is valid, false otherwise.
*/
protected boolean processICCBasedColorSpace(PDColorSpace pdcs,
List<ValidationError> result) {
PDICCBased iccBased = (PDICCBased) pdcs;
try {
ICC_Profile iccp = ICC_Profile.getInstance(iccBased.getPDStream().getByteArray());
if (iccp == null) {
result.add(new ValidationError(ERROR_GRAPHIC_INVALID_COLOR_SPACE_ICCBASED, "Unable to read ICCBase color space "));
return false;
}
List<PDColorSpace> altCs = iccBased.getAlternateColorSpaces();
for (PDColorSpace altpdcs : altCs) {
if (altpdcs != null) {
ColorSpaces altCsId = ColorSpaces.valueOf(altpdcs.getName());
if (altCsId == ColorSpaces.Pattern) {