GdViewer pdf GetRectCoordinatesOnDocument prblem
Posted: 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.
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.