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
FieldsModifier and TypeFieldDescription(package private) Box
(package private) org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement
(package private) org.apache.pdfbox.pdmodel.PDPage
(package private) org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement
Fields inherited from class com.openhtmltopdf.pdfboxout.PdfBoxAccessibilityHelper.AbstractTreeItem
parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract void
(package private) void
createPdfStrucureElement
(PdfBoxAccessibilityHelper.AbstractStructualElement parent, PdfBoxAccessibilityHelper.AbstractStructualElement child) (package private) abstract String
(package private) void
Handles globally valid HTML attributes such as title and lang.(package private) void
(package private) void
(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.toString()
Methods inherited from class com.openhtmltopdf.pdfboxout.PdfBoxAccessibilityHelper.AbstractTreeItem
finish
-
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
-
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
-