Class PdfStructureElement


public class PdfStructureElement extends PdfDictionary
This is a node in a document logical structure. It may contain a mark point or it may contain other nodes.
  • Field Details

  • Constructor Details

    • PdfStructureElement

      public PdfStructureElement(PdfStructureElement parent, PdfName structureType)
      Creates a new instance of PdfStructureElement.
      Parameters:
      parent - the parent of this node
      structureType - the type of structure. It may be a standard type or a user type mapped by the role map
    • PdfStructureElement

      public PdfStructureElement(PdfStructureTreeRoot parent, PdfName structureType)
      Creates a new instance of PdfStructureElement.
      Parameters:
      parent - the parent of this node
      structureType - the type of structure. It may be a standard type or a user type mapped by the role map
  • Method Details

    • init

      private void init(PdfDictionary parent, PdfName structureType)
    • getParent

      public PdfDictionary getParent()
      Gets the parent of this node.
      Returns:
      the parent of this node
    • setPageMark

      void setPageMark(int page, int mark)
    • getReference

      public PdfIndirectReference getReference()
      Gets the reference this object will be written to.
      Returns:
      the reference this object will be written to
      Since:
      2.1.6 method removed in 2.1.5, but restored in 2.1.6