Class PdfStructureTreeRoot

    • Constructor Detail

      • PdfStructureTreeRoot

        PdfStructureTreeRoot​(PdfWriter writer)
        Creates a new instance of PdfStructureTreeRoot
    • Method Detail

      • createNumTree

        private void createNumTree()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • 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
      • putIDTree

        void putIDTree​(java.lang.String record,
                       PdfObject reference)
      • getWriter

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

        public java.util.HashMap<java.lang.Integer,​PdfIndirectReference> getNumTree()
                                                                                   throws java.io.IOException
        Throws:
        java.io.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
      • buildTree

        void buildTree()
                throws java.io.IOException
        Throws:
        java.io.IOException