Class SquareCircleAnnotationValidator
java.lang.Object
org.apache.pdfbox.preflight.annotation.AnnotationValidator
org.apache.pdfbox.preflight.annotation.SquareCircleAnnotationValidator
Validation class for the Square/Circle Annotation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PDAnnotationSquareCirclePDFBox object which wraps the annotation dictionaryFields inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
annotDictionary, ctx, pdAnnot -
Constructor Summary
ConstructorsConstructorDescriptionSquareCircleAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReturn 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.booleanvalidate()In addition of the AnnotationValidator.validate() method, this method executes the checkIColors method.Methods inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
checkActions, checkAP, checkCA, checkColors, checkFlags, checkMandatoryFields, checkPopup, checkSpecificMandatoryFields, searchRGBProfile, setFactory
-
Field Details
-
pdSquareCircle
PDFBox object which wraps the annotation dictionary
-
-
Constructor Details
-
SquareCircleAnnotationValidator
-
-
Method Details
-
validate
In addition of the AnnotationValidator.validate() method, this method executes the checkIColors method.- Overrides:
validatein classAnnotationValidator- Returns:
- true if validation succeed, false otherwise.
- Throws:
ValidationException- See Also:
-
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.- Returns:
- the validation state of the IC field.
- Throws:
ValidationException
-