PDColor getColor() { return annotation.getColor(); }
/** * This will retrieve the color used in drawing various elements. As of PDF 1.6 these are : * <ul> * <li>Background of icon when closed</li> * <li>Title bar of popup window</li> * <li>Border of a link annotation</li> * </ul> * * @return Color object representing the colour * */ public PDColor getColor() { return getColor(COSName.C); }
/** * Return true if the C field is present in the Annotation dictionary and if the RGB profile is used in the * DestOutputProfile of the OutputIntent dictionary. * * @return true if the C field is present and the RGB profile is used. * @throws org.apache.pdfbox.preflight.exception.ValidationException */ protected boolean checkColors() throws ValidationException { if (this.pdAnnot.getColor() != 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; }
PDColor getColor() { return annotation.getColor(); }
/** * This will retrieve the color used in drawing various elements. As of PDF 1.6 these are : * <ul> * <li>Background of icon when closed</li> * <li>Title bar of popup window</li> * <li>Border of a link annotation</li> * </ul> * * @return Color object representing the colour * */ public PDColor getColor() { return getColor(COSName.C); }
/** * This will retrieve the color used in drawing various elements. As of PDF 1.6 these are : * <ul> * <li>Background of icon when closed</li> * <li>Title bar of popup window</li> * <li>Border of a link annotation</li> * </ul> * * @return Color object representing the colour * */ public PDColor getColor() { return getColor(COSName.C); }
@Override public double[] getColor() { if (annot != null) { PDColor color = annot.getColor(); if (color != null) { return PBAdapterHelper.castFloatArrayToDouble(color.getComponents()); } } return null; }
/** * Return true if the C field is present in the Annotation dictionary and if the RGB profile is used in the * DestOutputProfile of the OutputIntent dictionary. * * @return true if the C field is present and the RGB profile is used. * @throws org.apache.pdfbox.preflight.exception.ValidationException */ protected boolean checkColors() throws ValidationException { if (this.pdAnnot.getColor() != 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 C field is present in the Annotation dictionary and if the RGB profile is used in the * DestOutputProfile of the OutputIntent dictionary. * * @return true if the C field is present and the RGB profile is used. * @throws org.apache.pdfbox.preflight.exception.ValidationException */ protected boolean checkColors() throws ValidationException { if (this.pdAnnot.getColor() != 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; }
ab.color = annotation.getColor(); if (ab.color == null)
ab.color = annotation.getColor(); if (ab.color == null)
boolean hasBackground = contentStream.setNonStrokingColorOnDemand(getAnnotation().getColor());