Package com.openhtmltopdf.pdfboxout
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 Summary
Fields Modifier and Type Field Description (package private) Box
box
(package private) org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement
elem
(package private) org.apache.pdfbox.pdmodel.PDPage
page
(package private) org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement
parentElem
-
Fields inherited from class com.openhtmltopdf.pdfboxout.PdfBoxAccessibilityHelper.AbstractTreeItem
parent
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AbstractStructualElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
addChild(PdfBoxAccessibilityHelper.AbstractTreeItem child)
(package private) void
createPdfStrucureElement(PdfBoxAccessibilityHelper.AbstractStructualElement parent, PdfBoxAccessibilityHelper.AbstractStructualElement child)
(package private) abstract java.lang.String
getPdfTag()
(package private) void
handleGlobalAttributes()
Handles globally valid HTML attributes such as title and lang.(package private) void
handleLangAttribute()
(package private) void
handleTitleAttribute()
(package private) 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.(package private) void
setPdfVersion(float version)
Only a couple of types of structural elements need the PDF version so leave empty in the base class.java.lang.String
toString()
-
Methods inherited from class com.openhtmltopdf.pdfboxout.PdfBoxAccessibilityHelper.AbstractTreeItem
finish
-
-
-
-
Field Detail
-
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
-
-
Method Detail
-
addChild
abstract void addChild(PdfBoxAccessibilityHelper.AbstractTreeItem child)
-
getPdfTag
abstract java.lang.String getPdfTag()
-
createPdfStrucureElement
void createPdfStrucureElement(PdfBoxAccessibilityHelper.AbstractStructualElement parent, PdfBoxAccessibilityHelper.AbstractStructualElement child)
-
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 classjava.lang.Object
-
-