/** * 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 validation state of the IC field. */ protected boolean checkIColors() throws ValidationException { if (this.pdSquareCircle.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 validation state of the IC field. */ protected boolean checkIColors() throws ValidationException { if (this.pdSquareCircle.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 validation state of the IC field. */ protected boolean checkIColors() throws ValidationException { if (this.pdSquareCircle.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; }
contentStream.setStrokingColorOnDemand(getColor()); boolean hasBackground = contentStream .setNonStrokingColorOnDemand(((PDAnnotationSquareCircle) getAnnotation()).getInteriorColor());
contentStream.setStrokingColorOnDemand(getColor()); boolean hasBackground = contentStream .setNonStrokingColorOnDemand(((PDAnnotationSquareCircle) getAnnotation()).getInteriorColor());