pdfOCR 4.0.0 API
|
This class describes how recognized text is positioned on the image providing bbox for each text item (could be a line or a word). More...
Public Member Functions |
|
TextInfo () | |
Creates a new TextInfo instance. More... |
|
TextInfo (iText.Pdfocr.TextInfo textInfo) | |
Creates a new TextInfo instance from existing one. More... |
|
TextInfo (String text, Rectangle bbox) | |
Creates a new TextInfo instance. More... |
|
virtual String | GetText () |
Gets text element. More... |
|
virtual void | SetText (String newText) |
Sets text element. More... |
|
virtual Rectangle | GetBboxRect () |
Gets bbox coordinates. More... |
|
virtual void | SetBboxRect (Rectangle bbox) |
Sets text bbox. More... |
|
virtual LogicalStructureTreeItem | GetLogicalStructureTreeItem () |
Retrieves structure tree item for the text item. More... |
|
virtual void | SetLogicalStructureTreeItem (LogicalStructureTreeItem logicalStructureTreeItem) |
Sets logical structure tree parent item for the text info. More... |
|
This class describes how recognized text is positioned on the image providing bbox for each text item (could be a line or a word).
|
inline |
Creates a new TextInfo instance.
|
inline |
Creates a new TextInfo instance from existing one.
textInfo | to create from |
|
inline |
Creates a new TextInfo instance.
text | any text |
bbox |
iText.Kernel.Geom.Rectangle describing text bbox
|
inlinevirtual |
Gets bbox coordinates.
iText.Kernel.Geom.Rectangle describing text bbox
|
inlinevirtual |
Retrieves structure tree item for the text item.
|
inlinevirtual |
Gets text element.
|
inlinevirtual |
Sets text bbox.
bbox |
iText.Kernel.Geom.Rectangle describing text bbox
|
inlinevirtual |
Sets logical structure tree parent item for the text info.
Sets logical structure tree parent item for the text info. It allows to organize text chunks into logical hierarchy, e.g. specify document paragraphs, tables, etc.
If LogicalStructureTreeItem is set, then the list of TextInfo s in IOcrEngine.DoImageOcr(System.IO.FileInfo) return value is expected to be in logical order.
logicalStructureTreeItem | structure tree item. |
|
inlinevirtual |
Sets text element.
newText | retrieved text |