mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 23:29:00 +02:00
stream in the whole pdf file after loading the required page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user