summaryrefslogtreecommitdiffstats
path: root/src/pdf/api/qpdfdocument_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-01-09 18:11:05 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2020-01-27 13:55:09 +0000
commit9231d3444555945297857ee4aae05919083ea479 (patch)
tree7566488ff781e27f0e607cbf1c71a6d7594dc1ce /src/pdf/api/qpdfdocument_p.h
parenta06650f819ef164e6ec83d69957bd60d77574a16 (diff)
QPdfDocument: check first page in load(), current page in render()
When a viewer application is opened with a book-sized PDF, there's no need to check hundreds of pages before we can render the first page. Using it in QPdfIOHandler is even worse because this check needs to be repeated each time we advance from one page to the next. But we do need to ensure that the page we want to render is available. Amends 945840bd067d9ca3179a667f48b451cc2087931b Change-Id: Ib6576b1b91c63c2b57893d14b05632eff8cc4a15 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/pdf/api/qpdfdocument_p.h')
-rw-r--r--src/pdf/api/qpdfdocument_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pdf/api/qpdfdocument_p.h b/src/pdf/api/qpdfdocument_p.h
index 928754210..15d8b8259 100644
--- a/src/pdf/api/qpdfdocument_p.h
+++ b/src/pdf/api/qpdfdocument_p.h
@@ -98,6 +98,7 @@ public:
void _q_copyFromSequentialSourceDevice();
void tryLoadDocument();
void checkComplete();
+ bool checkPageComplete(int page);
void setStatus(QPdfDocument::Status status);
static FPDF_BOOL fpdf_IsDataAvail(struct _FX_FILEAVAIL* pThis, size_t offset, size_t size);