Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

zoom to normal when i n landscape mode

More
IP: 192.168.0.70 12 years 5 months ago #4229 by sbalajisuk
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
More
IP: 192.168.0.70 12 years 5 months ago #4239 by sbalajisuk
Hi can you please reply as soon as possible. We are in a very bad need.
More
IP: 192.168.0.149 12 years 5 months ago #4244 by emanuele
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
Time to create page: 0.387 seconds
Powered by Kunena Forum