diff --git a/src/pdf/qpdfdocument.cpp b/src/pdf/qpdfdocument.cpp index 69dc6e9ad7799d14a9d777ab5377f4bf918eeeee..3719938a2be0559a7a58efcf00e8853f0e90ed6a 100644 --- a/src/pdf/qpdfdocument.cpp +++ b/src/pdf/qpdfdocument.cpp @@ -211,8 +211,9 @@ void QPdfDocumentPrivate::load(QIODevice *newDevice, bool transferDeviceOwnershi emit q->pageCountChanged(pageCount); } - // If it's a local file, and the first page is available, probably the whole document is available. - if (checkPageComplete(0)) { + // If it's a local file, and the first couple of pages are available, + // probably the whole document is available. + if (checkPageComplete(0) && (pageCount < 2 || checkPageComplete(1))) { setStatus(QPdfDocument::Ready); } else { updateLastError();