iphoneipadpdfcalayerpdf-rendering

How to buffer PDF pages on CALayers in iPhone


I am working on a PDFReader application.I am making use of CALayer to render the pdf contents.currently one pdf page is being rendered at a time and is displayed on the visible view.I want to buffer few pages(say one previous page and one next page for example) in advance while the user is reading the current page.Can any one please suggest me a better way of achieving this buffering mechanism?Thanks in advance


Solution

  • You can take a look at this open source PDF viewer for iOS, it implements the features you asked about: http://www.vfr.org/2011/09/pdf-reader-viewer-v2-2/