Leave initial request open until the viewer is ready to switch to range requests.

This commit is contained in:
Brendan Dahl 2013-11-18 11:17:26 -08:00
parent 945e370d4f
commit 0385131a9a
5 changed files with 57 additions and 24 deletions

View file

@ -98,6 +98,9 @@ PDFJS.pdfBug = PDFJS.pdfBug === undefined ? false : PDFJS.pdfBug;
* - data - A typed array with PDF data.
* - httpHeaders - Basic authentication headers.
* - password - For decrypting password-protected PDFs.
* - initialData - A typed array with the first portion or all of the pdf data.
* Used by the extension since some data is already loaded
* before the switch to range requests.
*
* @param {object} pdfDataRangeTransport is optional. It is used if you want
* to manually serve range requests for data in the PDF. See viewer.js for