I have a PDF file for which I need to use Field recognition to get the text of a specific region. What I don't understand is how I can determine the coordinates of the region.
If a use a tool like Adobe Reader, Skim or Gimp to get the coordinates of a selected region in my pdf it seems it has nothing to do with the coordinates values in ABBYY FREngine.
When I look at the dimensions of the PDF in my PDF viewers I get something like a height of 841 and a width of 595.
But in ABBYY FREngine SDK the height is 3504 and the width 2479.
I am quite confused.
asked 12 May '15, 11:49
There is the AutoOverwriteResolution property of the PrepareImageMode object which specifies whether resolution of the prepared image should be automatically overwritten in FREngine. This property is TRUE by default. If you don't want to change the resolution of the image, set this property to FALSE.
Please find more information in Help → API Reference → Image-Related Objects → PrepareImageMode.
answered 13 May '15, 17:17
Oksana Serdyuk ♦♦
I think I have found the problem. Pdf readers display the PDFs at 72 DPI on screen, while ABBYY FREngine process the PDFs at 300 DPI by default.
I needed to convert the coordinates, width and height by multiplying them by (300/72) to get proper values to use in the SDK.
answered 12 May '15, 18:27