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 classHandler class that checksTOCItags while traversing the tag tree. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRefInTociStructElement(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
TOCIin the table of contents shall identify the target of the reference using theRefentry, either directly on theTOCIstructure element itself or on a child structure element contained within, such as aReferencestructure element.- Parameters:
-
structNode-TOCIstructure element to check - Throws:
-
PdfUAConformanceException- if document has incorrect table of contents item
-