Class PdfBoxAccessibilityHelper.AbstractStructualElement

    • Field Detail

      • elem

        org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement elem
      • parentElem

        org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement parentElem
      • page

        org.apache.pdfbox.pdmodel.PDPage page
    • Constructor Detail

      • AbstractStructualElement

        private AbstractStructualElement()
    • Method Detail

      • getPdfTag

        abstract java.lang.String getPdfTag()
      • handleGlobalAttributes

        void handleGlobalAttributes()
        Handles globally valid HTML attributes such as title and lang.
      • handleLangAttribute

        void handleLangAttribute()
      • handleTitleAttribute

        void handleTitleAttribute()
      • setPdfVersion

        void setPdfVersion​(float version)
        Only a couple of types of structural elements need the PDF version so leave empty in the base class.
      • setAttributeDictionary

        void setAttributeDictionary​(org.apache.pdfbox.cos.COSDictionary attrDict)
        The optional attribute dictionary is used for additional information about the structural element such as bounding box, cell spans, etc. NOTE: This only allows one attribute dictionary (possibly with multiple attributes) with one owner.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object