标签: ios swift qlpreviewcontroller cgpdfdocument
如何获取在QLPreviewController中打开的docx文件的页数。
QLPreviewController
//From this I'm getting page count of PDF file if let tempDocRef = CGPDFDocument(previewingURL! as CFURL) { print(tempDocRef.numberOfPages) }