Class TextAnnotationValidator
- java.lang.Object
-
- org.apache.pdfbox.preflight.annotation.AnnotationValidator
-
- org.apache.pdfbox.preflight.annotation.TextAnnotationValidator
-
public class TextAnnotationValidator extends AnnotationValidator
Validation class for Text Annotation
-
-
Field Summary
Fields Modifier and Type Field Description protected PDAnnotationText
pdText
PDFBox object which wraps the annotation dictionary-
Fields inherited from class org.apache.pdfbox.preflight.annotation.AnnotationValidator
annotDictionary, ctx, pdAnnot
-
-
Constructor Summary
Constructors Constructor Description TextAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkFlags()
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 Detail
-
pdText
protected PDAnnotationText pdText
PDFBox object which wraps the annotation dictionary
-
-
Constructor Detail
-
TextAnnotationValidator
public TextAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)
-
-
Method Detail
-
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.
-
-