Class PdfUA2TableOfContentsChecker
java.lang.Object
com.itextpdf.pdfua.checkers.utils.ua2.PdfUA2TableOfContentsChecker
Utility class which performs table of contents check according to PDF/UA-2 specification.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Handler class that checksTOCI
tags while traversing the tag tree. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkRefInTociStructElement
(IStructureNode structNode) Checks that table of contents item identifies the target of the reference according to PDF/UA-2 specification.
-
Constructor Details
-
PdfUA2TableOfContentsChecker
Creates a new instance ofPdfUA2TableOfContentsChecker
.- Parameters:
-
context
- the validation context
-
-
Method Details
-
checkRefInTociStructElement
Checks that table of contents item identifies the target of the reference according to PDF/UA-2 specification.Each
TOCI
in the table of contents shall identify the target of the reference using theRef
entry, either directly on theTOCI
structure element itself or on a child structure element contained within, such as aReference
structure element.- Parameters:
-
structNode
-TOCI
structure element to check - Throws:
-
PdfUAConformanceException
- if document has incorrect table of contents item
-