1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

PDFkit scale to fit

Discussion in 'Mac Programming' started by MrFusion, Feb 15, 2009.

  1. macrumors 6502a

    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?
  2. macrumors member

    -[PDFView setAutoscales:] (in combination with view mode 'Single page')
  3. macrumors 6502a

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

Share This Page