From ab0bcd4f579a78a4db241e440205ae54cb0829aa Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 10 May 2016 15:53:37 +0100 Subject: [PATCH] increase default pdfjs chunk size from 64K to 128K --- .../web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee index bd7883c156..5639d670f0 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee @@ -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