Class LineAnnotationValidator
java.lang.Object
org.apache.pdfbox.preflight.annotation.AnnotationValidator
org.apache.pdfbox.preflight.annotation.LineAnnotationValidator
Validation class for the LineAnnotation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PDAnnotationLine
PDFBox object which wraps the annotation dictionaryFields inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
annotDictionary, ctx, pdAnnot
-
Constructor Summary
ConstructorsConstructorDescriptionLineAnnotationValidator
(PreflightContext ctx, COSDictionary annotDictionary) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
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
Override this method to check the presence of specific fieldsboolean
validate()
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, searchRGBProfile, setFactory
-
Field Details
-
pdLine
PDFBox object which wraps the annotation dictionary
-
-
Constructor Details
-
LineAnnotationValidator
-
-
Method Details
-
validate
In addition of the AnnotationValidator.validate() method, this method executes the checkIColors method.- Overrides:
validate
in 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 state of the IC field validation.
- Throws:
ValidationException
-
checkSpecificMandatoryFields
protected boolean checkSpecificMandatoryFields()Description copied from class:AnnotationValidator
Override this method to check the presence of specific fields- Overrides:
checkSpecificMandatoryFields
in classAnnotationValidator
- Returns:
- the presence of specific fields.
-