Coordinates relative to PDF - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1

TOPIC: Coordinates relative to PDF

Coordinates relative to PDF 4 years 1 month ago #7489

  • nishantdania
  • nishantdania's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 4 years 2 weeks ago #7903

  • waxwings
  • waxwings's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 4 years 2 weeks ago #7905

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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 4 years 2 weeks ago #7929

  • waxwings
  • waxwings's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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