Class PdfStructIdTree

  • All Implemented Interfaces:
    IPdfNameTreeAccess

    public class PdfStructIdTree
    extends GenericNameTree
    Models the tree of structure element IDs. This is an optional feature of tagged PDF documents.
    • Constructor Detail

      • PdfStructIdTree

        PdfStructIdTree​(PdfDocument pdfDoc)
    • Method Detail

      • getStructElemById

        public PdfStructElem getStructElemById​(PdfString id)
        Retrieve a structure element by ID, if it has one.
        Parameters:
        id - the ID of the structure element to retrieve
        Returns:
        the structure element with the given ID if one exists, or null otherwise.
      • getStructElemById

        public PdfStructElem getStructElemById​(byte[] id)
        Retrieve a structure element by ID, if it has one.
        Parameters:
        id - the ID of the structure element to retrieve
        Returns:
        the structure element with the given ID if one exists, or null otherwise.