Class PdfStructureElement

    • Constructor Detail

      • 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 root,
                                   PdfName structureType)
        Creates a new instance of PdfStructureElement.
        Parameters:
        root - 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 Detail

      • getStructureType

        public PdfName getStructureType()
      • getParent

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

        public PdfDictionary getParent​(boolean includeStructTreeRoot)
      • 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
      • writeAttributes

        private void writeAttributes​(Chunk chunk)
      • writeAttributes

        private void writeAttributes​(Image image)
      • writeAttributes

        private void writeAttributes​(PdfTemplate template)
      • writeAttributes

        private void writeAttributes​(Paragraph paragraph)
      • writeAttributes

        private void writeAttributes​(List list)
      • writeAttributes

        private void writeAttributes​(ListItem listItem)
      • writeAttributes

        private void writeAttributes​(ListBody listBody)
      • writeAttributes

        private void writeAttributes​(ListLabel listLabel)
      • writeAttributes

        private void writeAttributes​(PdfPTable table)
      • writeAttributes

        private void writeAttributes​(PdfPRow row)
      • writeAttributes

        private void writeAttributes​(PdfPCell cell)
      • writeAttributes

        private void writeAttributes​(PdfPHeaderCell headerCell)
      • writeAttributes

        private void writeAttributes​(PdfPTableHeader header)
      • writeAttributes

        private void writeAttributes​(PdfPTableBody body)
      • writeAttributes

        private void writeAttributes​(PdfPTableFooter footer)
      • writeAttributes

        private void writeAttributes​(PdfDiv div)
      • writeAttributes

        private void writeAttributes​(Document document)
      • colorsEqual

        private boolean colorsEqual​(PdfArray parentColor,
                                    float[] color)
      • setTextAlignAttribute

        private void setTextAlignAttribute​(int elementAlign)
      • toPdf

        public void toPdf​(PdfWriter writer,
                          java.io.OutputStream os)
                   throws java.io.IOException
        Description copied from class: PdfDictionary
        Writes the PDF representation of this PdfDictionary as an array of byte to the given OutputStream.
        Overrides:
        toPdf in class PdfDictionary
        Parameters:
        writer - for backwards compatibility
        os - the OutputStream to write the bytes to.
        Throws:
        java.io.IOException
      • setStructureElementParent

        protected void setStructureElementParent​(PdfStructureElement parent)