Class WidgetAnnotationValidator


  • public class WidgetAnnotationValidator
    extends AnnotationValidator
    Validation class for the Widget Annotation
    • Field Detail

      • pdWidget

        protected org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget pdWidget
        PDFBox object which wraps the annotation dictionary
    • Constructor Detail

      • WidgetAnnotationValidator

        public WidgetAnnotationValidator​(PreflightContext ctx,
                                         org.apache.pdfbox.cos.COSDictionary annotDictionary)
    • Method Detail

      • checkAAField

        protected boolean checkAAField()
        The AA field is forbidden for the Widget annotation when the PDF is a PDF/A. This method return false and update the errors list if this key is present. returns true otherwise
        Returns:
        false if the forbidden AA field is existing.