获取DOCX页数快速查看

时间:2019-03-07 08:49:42

标签: ios swift qlpreviewcontroller cgpdfdocument

如何获取在QLPreviewController中打开的docx文件的页数。

//From this I'm getting page count of PDF file

if let tempDocRef = CGPDFDocument(previewingURL! as CFURL) {
    print(tempDocRef.numberOfPages)
}

0 个答案:

没有答案