stream in the whole pdf file after loading the required page

This commit is contained in:
Brian Gough 2014-12-09 13:41:49 +00:00
parent b94a9aab0d
commit 1e2e1ecb9c

View file

@ -9,8 +9,10 @@ define [
JOB_QUEUE_INTERVAL: 25 JOB_QUEUE_INTERVAL: 25
constructor: (@url, @options) -> constructor: (@url, @options) ->
PDFJS.disableAutoFetch = true PDFJS.disableFontFace = true # avoids repaints, uses worker more
PDFJS.disableFontFace = true # PDFJS.disableAutoFetch = true # enable this to prevent loading whole file
# PDFJS.disableStream
# PDFJS.disableRange
@scale = @options.scale || 1 @scale = @options.scale || 1
@document = $q.when(PDFJS.getDocument @url, null, null, @options.progressCallback) @document = $q.when(PDFJS.getDocument @url, null, null, @options.progressCallback)
@navigateFn = @options.navigateFn @navigateFn = @options.navigateFn