/** * Return true if the IC field is present in the Annotation dictionary and if the RGB profile is used in the * DestOutputProfile of the OutputIntent dictionary. * * @return the state of the IC field validation. */ protected boolean checkIColors() throws ValidationException { if (this.pdLine.getInteriorColor() != null && !searchRGBProfile()) { ctx.addValidationError(new ValidationError(ERROR_ANNOT_FORBIDDEN_COLOR, "Annotation uses a Color profile which isn't the same than the profile contained by the OutputIntent")); return false; } return true; }
boolean hasBackground = cs.setNonStrokingColorOnDemand(annotation.getInteriorColor());
/** * Return true if the IC field is present in the Annotation dictionary and if the RGB profile is used in the * DestOutputProfile of the OutputIntent dictionary. * * @return the state of the IC field validation. */ protected boolean checkIColors() throws ValidationException { if (this.pdLine.getInteriorColor() != null && !searchRGBProfile()) { ctx.addValidationError(new ValidationError(ERROR_ANNOT_FORBIDDEN_COLOR, "Annotation uses a Color profile which isn't the same than the profile contained by the OutputIntent")); return false; } return true; }
/** * Return true if the IC field is present in the Annotation dictionary and if the RGB profile is used in the * DestOutputProfile of the OutputIntent dictionary. * * @return the state of the IC field validation. */ protected boolean checkIColors() throws ValidationException { if (this.pdLine.getInteriorColor() != null && !searchRGBProfile()) { ctx.addValidationError(new ValidationError(ERROR_ANNOT_FORBIDDEN_COLOR, "Annotation uses a Color profile which isn't the same than the profile contained by the OutputIntent")); return false; } return true; }