Class TextAnnotationValidator
java.lang.Object
org.apache.pdfbox.preflight.annotation.AnnotationValidator
org.apache.pdfbox.preflight.annotation.TextAnnotationValidator
Validation class for Text Annotation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PDAnnotationText
PDFBox object which wraps the annotation dictionaryFields inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
annotDictionary, ctx, pdAnnot
-
Constructor Summary
ConstructorsConstructorDescriptionTextAnnotationValidator
(PreflightContext ctx, COSDictionary annotDictionary) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Checks if flags of the annotation are authorized.Methods inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
checkActions, checkAP, checkCA, checkColors, checkMandatoryFields, checkPopup, checkSpecificMandatoryFields, searchRGBProfile, setFactory, validate
-
Field Details
-
pdText
PDFBox object which wraps the annotation dictionary
-
-
Constructor Details
-
TextAnnotationValidator
-
-
Method Details
-
checkFlags
protected boolean checkFlags()Description copied from class:AnnotationValidator
Checks if flags of the annotation are authorized.- Print flag must be 1
- NoView flag must be 0
- Hidden flag must be 0
- Invisible flag must be 0
- Overrides:
checkFlags
in classAnnotationValidator
- Returns:
- false if a flag is invalid, true otherwise.
-