pdfOCR 1.0.1 API
iText.Pdfocr.TextInfo Class Reference

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 (String text, IList< float > bbox)
  Creates a new TextInfo instance. More...
 
virtual String  GetText ()
  Gets text element. More...
 
virtual void  SetText (String newText)
  Sets text element. More...
 
virtual IList< float >  GetBbox ()
  Gets bbox coordinates. More...
 
virtual void  SetBbox (IList< float > bbox)
  Sets bbox coordinates. More...
 

Detailed Description

This class describes how recognized text is positioned on the image providing bbox for each text item (could be a line or a word).

Constructor & Destructor Documentation

◆ TextInfo() [1/2]

iText.Pdfocr.TextInfo.TextInfo ( )
inline

Creates a new TextInfo instance.

◆ TextInfo() [2/2]

iText.Pdfocr.TextInfo.TextInfo ( String  text,
IList< float >  bbox 
)
inline

Creates a new TextInfo instance.

Parameters
text any text
bbox

System.Collections.IList of bbox parameters

Member Function Documentation

◆ GetBbox()

virtual IList iText.Pdfocr.TextInfo.GetBbox ( )
inlinevirtual

Gets bbox coordinates.

Returns

System.Collections.IList of bbox parameters

◆ GetText()

virtual String iText.Pdfocr.TextInfo.GetText ( )
inlinevirtual

Gets text element.

Returns
String

◆ SetBbox()

virtual void iText.Pdfocr.TextInfo.SetBbox ( IList< float >  bbox )
inlinevirtual

Sets bbox coordinates.

Parameters
bbox

System.Collections.IList of bbox parameters

◆ SetText()

virtual void iText.Pdfocr.TextInfo.SetText ( String  newText )
inlinevirtual

Sets text element.

Parameters
newText retrieved text