Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Windows 8.1, 10, WindowsPhone, Windows UWP

Coordinates relative to PDF

More
IP: 192.168.0.71 11 years 11 months ago - 11 years 11 months ago #7489 by nishantdania
Is there a way to get the coordinates relative to the PDF page instead of according to the screen/viewport ?
Last edit: 11 years 11 months ago by metal wolf.
More
IP: 192.168.0.71 11 years 9 months ago #7903 by waxwings
I am having the same problem. I also would like to get the width and height of the pdf page. Is it possible?
More
IP: 192.168.0.158 11 years 9 months ago #7905 by nermeen
Replied by nermeen on topic Coordinates relative to PDF
To get page width and height please check:

PDFDoc.GetPageHeight(int pageno) and PDFDco.GetPageWidth(int pageno)
www.androidpdf.mobi/documentation/window...FLib/pdf/PDFDoc.html
More
IP: 192.168.0.71 11 years 9 months ago #7929 by waxwings
Thanks! In the Android version, i solved the problem of getting coordinates relative to the PDF page through recording the vpage measurement on OnPDFPageDisplayed(Canvas canvas, PDFVPage vpage) event. From the data of VX, VY, Height and Width of vpage, i calculate the zoom ratio and position of the center of the page and therefore i get the coordinates.

I am trying the same thing on the WinRT version but not successful. m_h, m_x and m_y of the vpage stay the same during zooming, while m_w changes. Could it be a bug? If this could work, it would solve my problem of determining the coordinates.
Time to create page: 0.403 seconds
Powered by Kunena Forum