AnalyzeAlignedBlocks

This method splits the document into blocks that contain only left or right aligned lines. Using this method on a document with centered lines only typically results in one block per line.

Syntax

AnalyzeAlignedBlocks (edgeSide as CDREdgeSide, leftAlignTolerance as Long, XDist as Double, YDist as Double, Join as Boolean, minDistance as Double)
Parameter Description
edgeSide Determines whether left or right aligned blocks are searched.

Possible values

See CDREdgeSide

leftAlignTolerance The distance in millimeters that aligned lines might differ. Useful if the document was scanned slightly tilted.
XDist A value, depending on the font size of a word, that specifies how far off an existing block of words may be to belonging to that block. If its horizontal distance from the block is greater that XDist, a new block is created.
YDist This value specifies (in mm) the maximum vertical distance for a word from a block. If its distance is greater that YDist, a new block is generated.
Join Specifies whether overlapping blocks are joined. Set to TRUE if you want to join them.
minDistance This parameter is a factor to be multiplied with leftAlignTolerance. It specifies the minimal horizontal distance of two edges. Set this value to 0 to ignore its effect.