Class PdfUA2TableOfContentsChecker

java.lang.Object
com.itextpdf.pdfua.checkers.utils.ua2.PdfUA2TableOfContentsChecker

public final class PdfUA2TableOfContentsChecker extends Object
Utility class which performs table of contents check according to PDF/UA-2 specification.
  • Constructor Details

  • Method Details

    • checkRefInTociStructElement

      public void checkRefInTociStructElement (IStructureNode structNode)
      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 the Ref entry, either directly on the TOCI structure element itself or on a child structure element contained within, such as a Reference structure element.

      Parameters:
      structNode - TOCI structure element to check
      Throws:
      PdfUAConformanceException - if document has incorrect table of contents item