Your idea is absolutely correct.
UIPageViewController can work with a data source (like a table view controller). Each page requires a UIViewController object.
So the idea is that the page view datasource controller creates a CGPDFDocumentRef from your pdf file / url, selects each page CGPDFDocumentGetPage(pdfDocRef, pageNumber)
creates a view controller object that can display this page and returns it using data source methods .
You will get a lot of documentation / code to help you render the CGPDFPageRef. Its pretty easy.
lukya source share