mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
stream in the whole pdf file after loading the required page
This commit is contained in:
parent
b94a9aab0d
commit
1e2e1ecb9c
1 changed files with 4 additions and 2 deletions
|
@ -9,8 +9,10 @@ define [
|
|||
JOB_QUEUE_INTERVAL: 25
|
||||
|
||||
constructor: (@url, @options) ->
|
||||
PDFJS.disableAutoFetch = true
|
||||
PDFJS.disableFontFace = true
|
||||
PDFJS.disableFontFace = true # avoids repaints, uses worker more
|
||||
# PDFJS.disableAutoFetch = true # enable this to prevent loading whole file
|
||||
# PDFJS.disableStream
|
||||
# PDFJS.disableRange
|
||||
@scale = @options.scale || 1
|
||||
@document = $q.when(PDFJS.getDocument @url, null, null, @options.progressCallback)
|
||||
@navigateFn = @options.navigateFn
|
||||
|
|
Loading…
Reference in a new issue