Is it possible to get the coordinates of a recognized text region.For example for a static text field say for example "ABBYY" is it possible to get the coordinates of the 4 corners around the text and include it in the export script?
Coordinates of a field
Was this article helpful?
0 out of 0 found this helpful
Comments
2 comments
Yes, it is possible to get coordinates of a field if you refer to Field("name").Regions.Rects[j].Bottom (or Left, Right, Top instead of Bottom). Those properties return left\top\right\bottom coordinates of a rectangle. Then you can get corners' coordinates by combining the necessary two of those.
Please remember it is possible to check how many regions a given field has and how many rects a region has using Field("name").Regions.Count property and Field("name").Regions.Rects.Count respectively.
If you have any other questions please feel free to contact me again here or via PM.
Hope that helps,
Vladislav
Could you please provide the code how to assign the values of the coordinates to an element.
Thanks in advance.
Please sign in to leave a comment.