Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1

TOPIC:

Coordinates relative to PDF 9 years 6 months ago #7489

  • nishantdania
  • nishantdania's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Is there a way to get the coordinates relative to the PDF page instead of according to the screen/viewport ?

Please Log in or Create an account to join the conversation.

Last edit: by metal wolf.

Coordinates relative to PDF 9 years 5 months ago #7903

  • waxwings
  • waxwings's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
I am having the same problem. I also would like to get the width and height of the pdf page. Is it possible?

Please Log in or Create an account to join the conversation.

Coordinates relative to PDF 9 years 5 months ago #7905

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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

Please Log in or Create an account to join the conversation.

Coordinates relative to PDF 9 years 5 months ago #7929

  • waxwings
  • waxwings's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
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.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum