Click or drag to resize

OcrPageIteratorGetParagraphInfo Method

Get information about the current paragraph, if available.

Namespace: Patagames.Ocr
Assembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntax
public void GetParagraphInfo(
	out ParagraphJustification justification,
	out bool isListItem,
	out bool isCrown,
	out int firstLineIndent
)

Parameters

justification  ParagraphJustification
LEFT if ragged right, or fully justified and script is left-to-right. RIGHT if ragged left, or fully justified and script is right-to-left. Unknown if it looks like source code or we have very few lines.
isListItem  Boolean
true if we believe this is a member of an ordered or unordered list.
isCrown  Boolean
true if the first line of the paragraph is aligned with the other lines of the paragraph even though subsequent paragraphs have first line indents.This typically indicates that this is the continuation of a previous paragraph or that it is the very first paragraph in the chapter.
firstLineIndent  Int32
See remarks for details.
Remarks
first line indent -

For LEFT aligned paragraphs, the first text line of paragraphs of this kind are indented this many pixels from the left edge of the rest of the paragraph.

for RIGHT aligned paragraphs, the first text line of paragraphs of this kind are indented this many pixels from the right edge of the rest of the paragraph.

Note  Note
This value may be negative.
Note  Note
if is_crown == true, the first line of this paragraph is actually flush, and first_line_indent is set to the "common" first line indent for subsequent paragraphs in this block of text.
See Also