Быстрый просмотр страниц DOCX - PullRequest
0 голосов
/ 07 марта 2019

Как узнать количество страниц файла docx, открытого в QLPreviewController.

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

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