Class PdfUA2AnnotationChecker

java.lang.Object
com.itextpdf.pdfua.checkers.utils.ua2.PdfUA2AnnotationChecker
Direct Known Subclasses:
WellTaggedPdfForReuseAnnotationChecker

public class PdfUA2AnnotationChecker extends Object
Class that provides methods for checking PDF/UA-2 compliance of annotations.
  • Constructor Details

  • Method Details

    • checkAnnotations

      @Deprecated public static void checkAnnotations (PdfDocument pdfDocument)
      Deprecated.
      Checks PDF/UA-2 compliance of the annotations in the document.
      Parameters:
      pdfDocument - PdfDocument to check annotations for
    • checkAnnotation

      @Deprecated public static void checkAnnotation (PdfDictionary annotation, PdfUAValidationContext context)
      Checks PDF/UA-2 compliance of the annotation.
      Parameters:
      annotation - the annotation dictionary to check
      context - PdfUAValidationContext used to find the structure node enclosing the annotation using its StructParent value
    • checkAllAnnotations

      public void checkAllAnnotations (PdfDocument pdfDocument)
      Checks PDF/UA-2 compliance of the annotations.
      Parameters:
      pdfDocument - PdfDocument to check annotations for
    • checkSingleAnnotation

      public void checkSingleAnnotation (PdfDictionary annotation, PdfUAValidationContext context)
      Checks PDF/UA-2 compliance of the annotation.
      Parameters:
      annotation - the annotation dictionary to check
      context - PdfUAValidationContext used to find the structure node enclosing the annotation using its StructParent value
    • checkRequiredContentsEntry

      protected void checkRequiredContentsEntry (PdfName subtype, PdfDictionary annotation)
      Checks the PDF/UA-2 requirements related to the Contents entry for specific annotation types.
      Parameters:
      subtype - the annotation subtype
      annotation - the annotation dictionary