Hi,
We have a guide about coordinates that might be helpful
I think for this cause you want to use the “windowToPage” API to get the coordinate on the page you want to zoom to.
Also you can try using the “zoomToMouse” API instead of the “zoomTo”
https://www.pdftron.com/api/web/Core.DocumentViewer.html#zoomToMouse
One thing to note is that the mouse event X and Y are based on the mouse cursor location relative to the browser. So you’ll need to provide offset for where the viewer is on the page.
Best Regards,
Andrew Yip
Software Developer
PDFTron Systems, Inc.
www.pdftron.com