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

TOPIC:

Doc. height is fix , but PDFlayoutview small/large 7 years 9 months ago #10880

  • moontech
  • moontech's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 80
  • Thank you received: 0
My document height is fix that is 792, i set this height to PDFlayoutview dynamically , but the page inside PDFlayoutview not get resize according to diaplay.
In small device displaying 1 and half page.
In large device displaying 1 page in large size.
How to get display page height to 792 in PDFlayoutview, because document height is 792 ?

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

Doc. height is fix , but PDFlayoutview small/large 7 years 9 months ago #10886

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
The PDFLayoutView calculates the scale to fit the page according to the view-mode used (horizontal, vertical, single or dual) (check def_view in Global.default_config).

To change this behavior, you need to override PDFLayout.vLayout, you need to recaluclate the scale parameters based on the height you want.

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

  • Page:
  • 1
Powered by Kunena Forum