Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

page width after rotation 6 years 11 months ago #12398

  • davred
  • davred's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
How i can get page width after landscape rotation (the document is resized to fit view)? If i call m_doc.GetPageWidth i get always the same value as in portrait mode.

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

page width after rotation 6 years 11 months ago #12399

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
m_doc.GetPageWidth: Returns the original page's width.
The scaled page width =
m_doc.GetPageWidth(pageno) * m_view.PDFGetScale()

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

  • Page:
  • 1
Powered by Kunena Forum