Community

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

Hi,

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

Comments

3 comments

  • Avatar
    Anastasia Galimova

    Could you please specify the product?

    0
  • Avatar
    Drew

    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

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

Please sign in to leave a comment.