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.

asked 06 Jan '14, 15:40

Drew's gravatar image

Drew
2113

Could you please specify the product?

(07 Jan '14, 16:07) Anastasia Ga... ♦♦

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

(09 Jan '14, 11:09) Drew

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

answered 10 Jan '14, 18:07

Julia%20Anikushina's gravatar image

Julia Anikus... ♦♦
3628

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×36

Asked: 06 Jan '14, 15:40

Seen: 2,697 times

Last updated: 10 Jan '14, 18:07

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal