Resize page to fit in smaller view

Anonimous's Avatar


21 Jun, 2011 04:29 PM


My application allows a PDF to be viewed in one of two modes:

1) Full-screen
2) Partial screen (small 50 px UIView at top of screen and the same at the bottom of the screen

When the user select Partial screen mode I would like the PDF to resize to fit in the available space, at the moment the user has to scroll the page vertically.

Is there a way of having the page redrawn to fit the available space?


  1. 1 Posted by Nicolò on 15 Jul, 2011 02:16 PM

    Nicolò's Avatar


    We update the project with a sample application, Resizing Sample, that handles the MFDocumentViewController's view outside of its intended use (that is as an element on a navigation stack or as a modal view controller). It requires the forwarding of certain messages like -viewWillAppear and -viewDidAppear that are normally forwarded automatically to the controller when it is part of a stack.

  2. Matteo closed this discussion on 20 Jul, 2011 10:29 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac