public class SquareCircleAnnotationValidator extends AnnotationValidator
Modifier and Type | Field and Description |
---|---|
protected PDAnnotationSquareCircle |
pdSquareCircle
PDFBox object which wraps the annotation dictionary
|
annotDictionary, annotFact, cosDocument, ctx, pdAnnot
Constructor and Description |
---|
SquareCircleAnnotationValidator(PreflightContext ctx,
COSDictionary annotDictionary) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkIColors()
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.
|
protected boolean |
checkMandatoryFields()
Checks if all mandatory fields of an annotation are present.
|
boolean |
validate()
In addition of the AnnotationValidator.validate() method, this method executes the the checkIColors method.
|
checkActions, checkAP, checkCA, checkColors, checkFlags, checkPopup, searchRGBProfile, setFactory
protected PDAnnotationSquareCircle pdSquareCircle
public SquareCircleAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)
public boolean validate() throws ValidationException
validate
in class AnnotationValidator
ValidationException
org.apache.padaf.preflight.annotation.AnnotationValidator#validate(java.util.List)
protected boolean checkIColors() throws ValidationException
errors
- list of errors with is updated if no RGB profile is found when the IC element is presentValidationException
protected boolean checkMandatoryFields()
AnnotationValidator
checkMandatoryFields
in class AnnotationValidator
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.