increase default pdfjs chunk size from 64K to 128K

This commit is contained in:
Brian Gough 2016-05-10 15:53:37 +01:00
parent aafdc794cd
commit ab0bcd4f57

View file

@ -16,7 +16,7 @@ define [
# PDFJS.disableStream
# PDFJS.disableRange
@scale = @options.scale || 1
@pdfjs = PDFJS.getDocument @url
@pdfjs = PDFJS.getDocument {url: @url, rangeChunkSize: 2*65536}
@pdfjs.onProgress = @options.progressCallback
@document = $q.when(@pdfjs)
@navigateFn = @options.navigateFn