I'm currently evaluating PDFTron library for our UWP application. We are showing an additional layer above PDFViewCtrl and this layer needs to know what's the exact position (x,y) on the document that the user is viewing. Is there a way to get it from PDFViewCtrl? Maybe there's a method to get the Rect which is currently showed to the user?
I tried using HScroll and VScroll for it. thought that I can get the x value like this: (pseudocode):
var x = (HScroll / zoom) + ((DocumentWidth / 2) / zoom)
, but it fails to get correct results.
If anyone has any idea, I'd be grateful for your help.