         
         // Determine the size of the PDF page.
         var pageRect = CGPDFPageGetBoxRect(PDFPage, CGPDFBox.MediaBox)
-        
         PDFScale = min(frame.size.width/pageRect.size.width, frame.size.height/pageRect.size.height)
         pageRect.size = CGSizeMake(pageRect.size.width * PDFScale!, pageRect.size.height * PDFScale!)
         

    }
    
    private func updateMinimumMaximumZoom(){
        let targetRect = CGRectInset(bounds, CONTENT_INSET, CONTENT_INSET)
        let zoomScale = zoomScaleThatFits(targetRect.size, source: bounds.size)
        
        minimumZoomScale = zoomScale // Set the minimum and maximum zoom scales

internal final class PDFPageView: UIScrollView {
    private let ZOOM_LEVELS = 2
    private let ZOOM_STEP = 2
    
    /// A low resolution image of the PDF page that is displayed until the TiledPDFView renders its content.
    private let backgroundImageView: UIImageView
