Class PdfUA2TableOfContentsChecker


  • public final class PdfUA2TableOfContentsChecker
    extends java.lang.Object
    Utility class which performs table of contents check according to PDF/UA-2 specification.
    • Method Detail

      • 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
      • isRefPresent

        private static boolean isRefPresent​(PdfStructElem toci)