Page 1 of 1

GdViewer pdf GetRectCoordinatesOnDocument prblem

Posted: Tue Jun 01, 2021 9:29 pm
by Isaac
hi;
i struggled with this for long time, till figured it out, I don't know if that's by design or a bug

GdViewer.GetRectCoordinatesOnDocument when the document is a image will always return exact pixel even if zoomed, but when the document is a pdf there is 2 strange things that happen

1. the values are effected by zoom and need to divided the returned value in zoom.
2. the value represent 96 points per inch, while the default pdf setting and measurements is 72 point per inch in all other functions.

so need to do a lot of conversions to get to the real number, and this is not documented anywhere.

i am using version 14, in VFP.

Re: GdViewer pdf GetRectCoordinatesOnDocument prblem

Posted: Tue Jun 08, 2021 9:51 am
by Fabio
Hello Isaac,

I reported the coordinates issue, I'll write you back when it will be corrected! Thanks for the feedback.

For the second issue, could you send me the document you're using to have this behavior to make some tests on my side, please?

With best,
Fabio