Code for Text block using Coordinates (x1,y1,x2,y2)


Needs to read the coordinates of text block in this format (x1,y1,x2,y2).

with the help of the page size and its orientation.

As problem is we get the coordinates on the mouse up events but when we reapply the same coordinates its mess - up at some other location.

Please help for the same..

Thanks Drew.

Was this article helpful?

1 out of 1 found this helpful



  • Avatar
    Anastasia Galimova

    Could you please specify the product?

  • Avatar

    We are using abbyy fine reader engine 11

    As on imageviewer mouseup and mousedown event we have tried to get, but it gives us wrong coordinates.

    Please help to get the block created by user and it type.

    Thanks Drew

  • Avatar
    Julia Anikushina

    You can get the block's coordinates with the help of Region object and its properties Left, Top, Right and Bottom:

    `FREngine.Region region = block.Region;
    int left = region.get_Left(0);
    int top = region.get_Top(0);
    int right = region.get_Right(0);
    int bottom = region.get_Bottom(0);`

    For getting the type of the block you can use IBlock::Type property:

    `FREngine.BlockTypeEnum type = block.Type;`

Please sign in to leave a comment.