zoom to normal when i n landscape mode - 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 iOS development and PDF
  • Page:
  • 1

TOPIC: zoom to normal when i n landscape mode

zoom to normal when i n landscape mode 5 years 2 months ago #4229

  • sbalajisuk
  • sbalajisuk's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Hi,

We have integrated your PDF SDK. Issue is the PDF page is displaying normally in portrait mode. But when we flip to landscape mode, the page is zoomed and we have to manually resize it. Please let us know how to make it to fit to page but still it should be zoomable if the user wants to zoom.

This is for iOS.

Please reply at the earliest. Thanks for your help.

Bala

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

zoom to normal when i n landscape mode 5 years 2 months ago #4239

  • sbalajisuk
  • sbalajisuk's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Hi can you please reply as soon as possible. We are in a very bad need.

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

zoom to normal when i n landscape mode 5 years 1 month ago #4244

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 525
  • Karma: 20
  • Thank you received: 60
Hi,

this is normal to keep the same zoom level while you're reading a pdf.

However you can set the zoom level with [m_view vSetScale:scale] method in PDFView class.

You have to:
  1. Add a new method in PDFView class, for example: - (void)vSetZoom:(float)scale
  2. Call [m_view vSetScale:scale] in your new method
  3. Call vSetZoom method in RDPDFViewController, for example in the end of didRotateFromInterfaceOrientation method

You have to pay attention to call vSetZoom only when you need it, otherwise the zoom level will be always the same whenever you'll rotate the device

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

  • Page:
  • 1
Powered by Kunena Forum