Class PdfUA2AnnotationChecker
java.lang.Object
com.itextpdf.pdfua.checkers.utils.ua2.PdfUA2AnnotationChecker
- Direct Known Subclasses:
-
WellTaggedPdfForReuseAnnotationChecker
Class that provides methods for checking PDF/UA-2 compliance of annotations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHandler for checking annotation elements in the tag tree. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAllAnnotations(PdfDocument pdfDocument) Checks PDF/UA-2 compliance of the annotations.static voidcheckAnnotation(PdfDictionary annotation, PdfUAValidationContext context) Deprecated.static voidcheckAnnotations(PdfDocument pdfDocument) Deprecated.UsecheckAllAnnotations(PdfDocument)instead.protected voidcheckRequiredContentsEntry(PdfName subtype, PdfDictionary annotation) Checks the PDF/UA-2 requirements related to the Contents entry for specific annotation types.voidcheckSingleAnnotation(PdfDictionary annotation, PdfUAValidationContext context) Checks PDF/UA-2 compliance of the annotation.
-
Constructor Details
-
PdfUA2AnnotationChecker
public PdfUA2AnnotationChecker()Creates a new instance of thePdfUA2AnnotationChecker.
-
-
Method Details
-
checkAnnotations
Deprecated.UsecheckAllAnnotations(PdfDocument)instead.Checks PDF/UA-2 compliance of the annotations in the document.- Parameters:
-
pdfDocument-PdfDocumentto check annotations for
-
checkAnnotation
@Deprecated public static void checkAnnotation(PdfDictionary annotation, PdfUAValidationContext context) Deprecated.Checks PDF/UA-2 compliance of the annotation.- Parameters:
-
annotation- the annotation dictionary to check -
context-PdfUAValidationContextused to find the structure node enclosing the annotation using itsStructParentvalue
-
checkAllAnnotations
Checks PDF/UA-2 compliance of the annotations.- Parameters:
-
pdfDocument-PdfDocumentto check annotations for
-
checkSingleAnnotation
Checks PDF/UA-2 compliance of the annotation.- Parameters:
-
annotation- the annotation dictionary to check -
context-PdfUAValidationContextused to find the structure node enclosing the annotation using itsStructParentvalue
-
checkRequiredContentsEntry
Checks the PDF/UA-2 requirements related to the Contents entry for specific annotation types.- Parameters:
-
subtype- the annotation subtype -
annotation- the annotation dictionary
-
checkSingleAnnotation(PdfDictionary, PdfUAValidationContext)instead.