public class TextInfo extends Object
| Constructor and Description |
|---|
TextInfo()
Creates a new
TextInfo instance. |
TextInfo(String text,
com.itextpdf.kernel.geom.Rectangle bbox)
Creates a new
TextInfo instance. |
TextInfo(TextInfo textInfo)
Creates a new
TextInfo instance from existing one. |
| Modifier and Type | Method and Description |
|---|---|
com.itextpdf.kernel.geom.Rectangle |
getBboxRect()
Gets bbox coordinates.
|
LogicalStructureTreeItem |
getLogicalStructureTreeItem()
Retrieves structure tree item for the text item.
|
String |
getText()
Gets text element.
|
void |
setBboxRect(com.itextpdf.kernel.geom.Rectangle bbox)
Sets text bbox.
|
void |
setLogicalStructureTreeItem(LogicalStructureTreeItem logicalStructureTreeItem)
Sets logical structure tree parent item for the text info.
|
void |
setText(String newText)
Sets text element.
|
public TextInfo()
TextInfo instance.public TextInfo(TextInfo textInfo)
TextInfo instance from existing one.textInfo - to create frompublic String getText()
public void setText(String newText)
newText - retrieved textpublic com.itextpdf.kernel.geom.Rectangle getBboxRect()
Rectangle describing text bboxpublic void setBboxRect(com.itextpdf.kernel.geom.Rectangle bbox)
bbox - Rectangle describing text bboxpublic LogicalStructureTreeItem getLogicalStructureTreeItem()
public void setLogicalStructureTreeItem(LogicalStructureTreeItem logicalStructureTreeItem)
If LogicalStructureTreeItem is set, then the list of TextInfos in IOcrEngine.doImageOcr(java.io.File)
return value is expected to be in logical order.
logicalStructureTreeItem - structure tree item.Copyright © 1998–2024 Apryse Group NV. All rights reserved.