Page 1 of 1

PXO_InputField

Posted: Tue Jun 07, 2016 8:35 pm
by Tom Princen
How do I calculate the coordinates (left, right, upper,...)?

In the help I find this quote “The unit is points (72 per inch).” But this does not seem correct?

Re: PXO_InputField

Posted: Fri Jun 10, 2016 10:40 am
by Tracker Supp-Stefan
Hello Tom,

Can you please provide a snippet of the code you are trying to use, and comment why you think the result is not correct?

Regards,
Stefan

Re: PXO_InputField

Posted: Tue Jun 14, 2016 8:36 am
by Tom Princen
PXO_InputField MyInputField = PXO_InputField();

MyInputField.top = 0;
MyInputField.bottom = 100;

MyInputField.left = 403;
MyInputField.right = 604;

MyInputField.nPage = 0;


OCR_GetField(pdf, ref Options, out TextOut, Zone, (uint)PXO_FieldInputFlags.PXO_Origin_TopLeft);

These MyinputField coordinates how do i know them? Can I visualize it on the PDF?

Re: PXO_InputField

Posted: Tue Jun 14, 2016 11:35 am
by Tracker Supp-Stefan
Hi Tom,

From the description of the PXO_InputField method:
Coordinates are in PDF page coordinates, starting with (0,0) at the lower left corner of the page, similar to conventional / Cartesian mathematics (and in contrast to Windows RECT coordinates). The unit is points (72 per inch).

So the bottom left corner of the page is (0,0), and the top right corner for an A4 page (210x297mm) is (595.2755, 841.8897)
For a Letter page - 8.5 x 11 inch the top left will be (612.0 , 792.0)

Regards,
Stefan

Re: PXO_InputField

Posted: Tue Jun 21, 2016 1:32 pm
by Tom Princen
Is there a way to optimize the OCR results of a certain font?
I have some numbers that are very frequently are miss translated:

1 instead of 7 (see attachment 1)

Re: PXO_InputField

Posted: Tue Jun 21, 2016 4:22 pm
by Tracker Supp-Stefan
Hello Tom,

There are no training tools available for our OCR currently - sorry.

Numbers are indeed quite tricky with some fonts.

Regards,
Stefan