Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the current page number of pdf?

There is a default Core Graphics method that tells the current active PDF page number.
Is there any way to get the current active page number as showing by the page indicator?
And also is there any way to hide the the page indicator?
Answer in Objective-C would be appreciated.

PDF

like image 928
buraAkshay Avatar asked Nov 30 '22 14:11

buraAkshay


1 Answers

It is easy to get page number in PDFKit. Please find the below code snippet.

print(pdfDocument!.index(for: pdfView.currentPage!))
like image 143
Sunil aruru Avatar answered Dec 03 '22 04:12

Sunil aruru