iOS PDF Zoom question


I’m wondering if anyone can help me with a zoom issue. I’m evaluation the pdf sdk for iOS. I have a PDF that consists of one page that is generally quite long. It shows a rail map.

When initialise the pdfviewctrl I set the pdf view to zoom it to fit the height using SetPageViewMode:e_trn_fit_height

That works fine. I would like to be able to let the user zoom in from there but not zoom out more than the ‘fit height’ size? I’ve tried setting minimum zoom using the SetZoomLimits method but can’t seem to get it to work as I want.


Kindly try the following settings:

  1. SetPageViewMode and SetPageRefViewMode to fit height

  2. SetZoomLimits:e_trn_zoom_limit_relative Minimum:1.0 Maxiumum:10.0]; // use any max value, but keep min as 1.0


Thanks Aaron, that worked :slight_smile: