From daba13aebbc53145b7c6e139d8c974d7c30830f8 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 14 Jan 2015 18:33:12 +0100 Subject: [PATCH] Amend the docs for |disableAutoFetch| to mention that streaming must also be disabled --- src/display/api.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/display/api.js b/src/display/api.js index 185f10c55..547fe6d8a 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -99,6 +99,9 @@ PDFJS.disableStream = (PDFJS.disableStream === undefined ? * Disable pre-fetching of PDF file data. When range requests are enabled PDF.js * will automatically keep fetching more data even if it isn't needed to display * the current page. This default behavior can be disabled. + * + * NOTE: It is also necessary to disable streaming, see above, + * in order for disabling of pre-fetching to work correctly. * @var {boolean} */ PDFJS.disableAutoFetch = (PDFJS.disableAutoFetch === undefined ?