Class PdfStructureTreeRoot

All Implemented Interfaces:
IPdfStructureElement, Serializable

public class PdfStructureTreeRoot extends PdfDictionary implements IPdfStructureElement
The structure tree root corresponds to the highest hierarchy level in a tagged PDF.
Author:
Paulo Soares
See Also:
  • Field Details

  • Method Details

    • mapRole

      public void mapRole(PdfName used, PdfName standard)
      Maps the user tags to the standard tags. The mapping will allow a standard application to make some sense of the tagged document whatever the user tags may be.
      Parameters:
      used - the user tag
      standard - the standard tag
    • mapClass

      public void mapClass(PdfName name, PdfObject object)
    • getMappedClass

      public PdfObject getMappedClass(PdfName name)
    • getWriter

      public PdfWriter getWriter()
      Gets the writer.
      Returns:
      the writer
    • getNumTree

      public HashMap<Integer, PdfIndirectReference> getNumTree() throws IOException
      Throws:
      IOException
    • 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
    • getAttribute

      public PdfObject getAttribute(PdfName name)
      Gets the first entarance of attribute.
      Specified by:
      getAttribute in interface IPdfStructureElement
      Since:
      5.3.4
    • setAttribute

      public void setAttribute(PdfName name, PdfObject obj)
      Sets the attribute value.
      Specified by:
      setAttribute in interface IPdfStructureElement
      Since:
      5.3.4