PDFkit scale to fit

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

  1. MrFusion
    Expand Collapse
    macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #1
    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. Bakerman
    Expand Collapse
    macrumors member

    Joined:
    Jan 31, 2005
    Location:
    Sweden
    #2
    -[PDFView setAutoscales:] (in combination with view mode 'Single page')
     
  3. MrFusion
    Expand Collapse
    thread starter macrumors 6502a

    Joined:
    Jun 8, 2005
    Location:
    West-Europe
    #3
    Thanks. Setting this in code, instead of in IB does the trick.
     

Share This Page