Hello,

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

maol's gravatar image

maol
2911


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.

link

answered 13 May '15, 17:17

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

Answering myself:

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.

link

answered 12 May '15, 18:27

maol's gravatar image

maol
2911

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:

×47
×35
×17
×11
×7

Asked: 12 May '15, 11:49

Seen: 2,108 times

Last updated: 13 May '15, 17:17

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