Class PdfBoxAccessibilityHelper.AbstractStructualElement

java.lang.Object
com.openhtmltopdf.pdfboxout.PdfBoxAccessibilityHelper.AbstractTreeItem
com.openhtmltopdf.pdfboxout.PdfBoxAccessibilityHelper.AbstractStructualElement
Direct Known Subclasses:
PdfBoxAccessibilityHelper.FigureStructualElement, PdfBoxAccessibilityHelper.GenericStructualElement, PdfBoxAccessibilityHelper.ListItemStructualElement, PdfBoxAccessibilityHelper.ListLabelStructualElement, PdfBoxAccessibilityHelper.ListStructualElement, PdfBoxAccessibilityHelper.TableStructualElement
Enclosing class:
PdfBoxAccessibilityHelper

private abstract static class PdfBoxAccessibilityHelper.AbstractStructualElement extends PdfBoxAccessibilityHelper.AbstractTreeItem
  • Field Details

    • box

      Box box
    • 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 Details

    • AbstractStructualElement

      private AbstractStructualElement()
  • Method Details

    • addChild

      abstract void addChild(PdfBoxAccessibilityHelper.AbstractTreeItem child)
    • getPdfTag

      abstract String getPdfTag()
    • createPdfStrucureElement

    • 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 String toString()
      Overrides:
      toString in class Object