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

TOPIC:

zoom to normal when i n landscape mode 10 years 6 months ago #4229

  • sbalajisuk
  • sbalajisuk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 10 years 6 months ago #4239

  • sbalajisuk
  • sbalajisuk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 10 years 6 months ago #4244

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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