GdViewer pdf GetRectCoordinatesOnDocument prblem

Discussions about PDF management.
Post Reply
Isaac
Posts: 6
Joined: Fri Oct 23, 2020 9:21 am

GdViewer pdf GetRectCoordinatesOnDocument prblem

Post by Isaac » Tue Jun 01, 2021 9:29 pm

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.

User avatar
Fabio
Posts: 173
Joined: Thu Aug 27, 2020 9:57 am

Re: GdViewer pdf GetRectCoordinatesOnDocument prblem

Post by Fabio » Tue Jun 08, 2021 9:51 am

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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest