convertWindowToPDFCoords2

Convert PDF coordinates to window coordinates.
convertWindowToPDFCoords2([in] int winX, [in] int winY, [out] int *page, [out] double *pdfX, [out] double *pdfY)
XpdfViewer functions deal with two different coordinate spaces. In the window coordinate space, (0,0) is the upper-left corner of the window, and the units are pixels. In the PDF coordinate space, the origin is determined by the PDF file (and may even change from page to page), and the units are points (1 point = 1/72 inch).

This function converts a point from window coordinates (winX, winY) to PDF coordinates (returned in page, pdfX, pdfY).

VB:
Dim winX As Long, winY As Long Dim page As Long Dim pdfX As Double, pdfY As Double ... viewer.convertWindowToPDFCoords2(winX, winY, page, pdfX, pdfY) ... viewer.convertPDFToWindowCoords2(page, pdfX, pdfY, winX, winY)
convertPDFToWindowCoords2