PDA

View Full Version : PDFkit scale to fit




MrFusion
Feb 15, 2009, 12:37 PM
I have a pdfview in my app, for which the user can set the scaling factor (50% up to 200%). This is working fine, but I would also like to include a "scale to fit" option. Either I have gone blind or there is no such method listed in the PDFView class. It surely must be possible somehow? Does anyone know what the trick is?



Bakerman
Feb 16, 2009, 02:35 AM
Does anyone know what the trick is?

-[PDFView setAutoscales:] (in combination with view mode 'Single page')

MrFusion
Feb 16, 2009, 01:06 PM
-[PDFView setAutoscales:] (in combination with view mode 'Single page')

Thanks. Setting this in code, instead of in IB does the trick.