Class PdfUA2AnnotationChecker
java.lang.Object
com.itextpdf.pdfua.checkers.utils.ua2.PdfUA2AnnotationChecker
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. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidcheckAnnotation(PdfDictionary annotation, PdfStructElem parent) Checks PDF/UA-2 compliance of the annotation.static voidcheckAnnotation(PdfDictionary annotation, PdfUAValidationContext context) Checks PDF/UA-2 compliance of the annotation.private static voidcheckAnnotationFlags(PdfDictionary annotation) static voidcheckAnnotations(PdfDocument pdfDocument) Checks PDF/UA-2 compliance of the annotations.private static voidcheckMarkupAnnotations(PdfDictionary annotation, PdfName parentRole) Checks the PDF/UA-2 8.9.2.3 Markup annotations requirements.(package private) static Stringprivate static StringparseRichText(Node node)
-
Field Details
-
markupAnnotationTypes
-
-
Constructor Details
-
PdfUA2AnnotationChecker
private PdfUA2AnnotationChecker()Creates a new instance of thePdfUA2AnnotationChecker.
-
-
Method Details
-
checkAnnotations
Checks PDF/UA-2 compliance of the annotations.- Parameters:
pdfDocument-PdfDocumentto check annotations for
-
checkAnnotation
Checks PDF/UA-2 compliance of the annotation.- Parameters:
annotation- the annotation dictionary to checkcontext-PdfUAValidationContextused to find the structure node enclosing the annotation using itsStructParentvalue
-
checkAnnotation
Checks PDF/UA-2 compliance of the annotation.- Parameters:
annotation- the annotation dictionary to checkparent- the parent structure element
-
checkMarkupAnnotations
Checks the PDF/UA-2 8.9.2.3 Markup annotations requirements.- Parameters:
annotation- the markup annotationsparentRole- the parent role
-
getRichTextStringValue
-
parseRichText
-
checkAnnotationFlags
-