I have created a pdf document and displayed it in a PDFView using PDFKit.Is there any direct way to show the pages in the document as pagination.
Asked
Active
Viewed 863 times
5
-
Is there any pods available which gives the document view with pagination? – Faheem Rahman Dec 01 '18 at 04:25
-
Im unaware of any pods. I would either put all PDF's into one document. Or use a UITableView / UICollectionView to display the PDF's by page. – Jeff Dec 01 '18 at 21:46
-
3I got it .you can use thumbnailView of PDFKit to do this. – Faheem Rahman Dec 11 '18 at 05:21
1 Answers
5
YEs, they have a built in method called usePageViewController(enable:options:)
you can use this on your PDFView
object in the viewDidAppear
and it will show you it in a UIPageViewController.
override func viewDidAppear(_animated: Bool) {
pdfView.usePageViewController(true, withViewOptions: nil)
}

Seth Kurkowski
- 223
- 2
- 11