Skip to main content
Elements of the lines array are objects describing strings making up a text block or table cell. Elements in this array are ordered identically to the way they are read.
PropertyData typeDescription
positionrectThe coordinates of the rectangular region on the document where the text string is located.
confidenceconfidenceThe level of confidence for the text in the string being recognized correctly. Calculated using confidence values for words that make up the string.
textstringThe string value of the element.
charParamsobjectThe parameters related to font formatting.
wordsobject arrayAn array consisting of words that make up the text string. Elements are ordered identically to the way they are read.

CharParams Elements

Elements of the charParams is an object describing formatting of characters. These elements are applied to the object to which they relate (single character or a group of characters).
PropertyData typeDescription
boldbooleanIndicates that a font style is bold.
italicbooleanIndicates that a font style is italic.
underlinedbooleanIndicates that a font style is underlined.
strikeoutbooleanIndicates that a font style is strikeout.
smallCapsbooleanIndicates that a font is small caps.
superscriptbooleanIndicates the superscript font property.
subscriptbooleanIndicates the subscript font property.
scalingintegerThe scaling of the font (the default value is 1000).
spacingintegerThe character spacing in twips (1/20 pt, 1/1440 inch).
fontSizeintegerThe font size property state in twips (1/20 pt, 1/1440 inch).
fontNamestringThe font name.
colorstringThe font color (hexadecimal value in 6-digit format RRGGBB).
langstringThe language of the characters. Consists of language and country parts, please refer to ISO 639 and ISO 3166.

Words Array Elements

Elements of the words array are objects describing words that make up a text string.
PropertyData typeDescription
positionrectThe coordinates of the rectangular region on the document where the word is located.
confidenceconfidenceThe level of confidence for the word being recognized correctly. Calculated using confidence values for characters making up the word.
textstringThe string value of the word.
charsobject arrayAn array of characters that make up the word. Elements in the array are ordered the same way they are read.

Chars Array Elements

Elements of the chars array are objects that describe characters that make up a word. A character is the smallest unit of text information.
PropertyData typeDescription
confidenceconfidenceThe level of confidence for the character being recognized correctly.
textstringThe string value of the character.
positionrectThe coordinates of the rectangular region on the document where the character is located.