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

  • Last Post 09 January 2014
Drew posted this 06 January 2014


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.

  • Liked by
  • Julia Anikushina
Order By: Standard | Newest | Votes
Anastasia Galimova posted this 07 January 2014

Could you please specify the product?

Drew posted this 09 January 2014

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

Julia Anikushina posted this 10 January 2014

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;`