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) Boxbox(package private) org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElementelem(package private) org.apache.pdfbox.pdmodel.PDPagepage(package private) org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElementparentElem-
Fields inherited from class com.openhtmltopdf.pdfboxout.PdfBoxAccessibilityHelper.AbstractTreeItem
parent
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAbstractStructualElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract voidaddChild(PdfBoxAccessibilityHelper.AbstractTreeItem child)(package private) voidcreatePdfStrucureElement(PdfBoxAccessibilityHelper.AbstractStructualElement parent, PdfBoxAccessibilityHelper.AbstractStructualElement child)(package private) abstract java.lang.StringgetPdfTag()(package private) voidhandleGlobalAttributes()Handles globally valid HTML attributes such as title and lang.(package private) voidhandleLangAttribute()(package private) voidhandleTitleAttribute()(package private) voidsetAttributeDictionary(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) voidsetPdfVersion(float version)Only a couple of types of structural elements need the PDF version so leave empty in the base class.java.lang.StringtoString()-
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:
toStringin classjava.lang.Object
-
-