iOS PDF Zoom question

46 views
Skip to first unread message

bec...@gmail.com

unread,
Oct 10, 2014, 12:43:22 AM10/10/14
to pdfne...@googlegroups.com
Hi,

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.  

Thanks,
Rebecca

Aaron

unread,
Oct 10, 2014, 12:44:31 PM10/10/14
to pdfne...@googlegroups.com
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

bec...@gmail.com

unread,
Oct 19, 2014, 2:48:33 AM10/19/14
to pdfne...@googlegroups.com
Thanks Aaron,  that worked :)
Reply all
Reply to author
Forward
0 new messages