Class LogicalStructureTreeItem
java.lang.Object
com.itextpdf.pdfocr.structuretree.LogicalStructureTreeItem
- Direct Known Subclasses:
-
ArtifactItem
,ParagraphTreeItem
,SpanTreeItem
,TableCellTreeItem
,TableRowTreeItem
,TableTreeItem
This class represents structure tree item of the text item put into the pdf document. See
TextInfo
.
-
Constructor Summary
ConstructorDescriptionInstantiate a newLogicalStructureTreeItem
instance.LogicalStructureTreeItem
(com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties accessibilityProperties) Instantiate a newLogicalStructureTreeItem
instance. -
Method Summary
Modifier and TypeMethodDescriptionaddChild
(LogicalStructureTreeItem child) Add child structure tree item.com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties
Retrieve structure tree element's properties.Retrieve all child structure tree items.Retrieve parent structure tree item.boolean
Remove child structure tree item.setAccessibilityProperties
(com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties accessibilityProperties) Set structure tree element's properties.
-
Constructor Details
-
LogicalStructureTreeItem
public LogicalStructureTreeItem()Instantiate a newLogicalStructureTreeItem
instance. -
LogicalStructureTreeItem
public LogicalStructureTreeItem(com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties accessibilityProperties) Instantiate a newLogicalStructureTreeItem
instance.- Parameters:
-
accessibilityProperties
- properties to define and describe pdf structure elements.
-
-
Method Details
-
getAccessibilityProperties
public com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties getAccessibilityProperties()Retrieve structure tree element's properties.- Returns:
- structure tree element's properties.
-
setAccessibilityProperties
public LogicalStructureTreeItem setAccessibilityProperties(com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties accessibilityProperties) Set structure tree element's properties.- Parameters:
-
accessibilityProperties
- structure tree element's properties. - Returns:
-
this
LogicalStructureTreeItem
instance.
-
getParent
Retrieve parent structure tree item.- Returns:
- parent structure tree item.
-
addChild
Add child structure tree item.- Parameters:
-
child
- child structure tree item. - Returns:
-
this
LogicalStructureTreeItem
instance.
-
removeChild
Remove child structure tree item.- Parameters:
-
child
- child structure tree item. - Returns:
-
true
if the child was removed,false
otherwise.
-
getChildren
Retrieve all child structure tree items.- Returns:
- all child structure tree items.
-