You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any option that can be set for displaying first page after it has been downloaded and let the file continue downloading, rather than waiting for whole file to download?
Is there any option that can be set for displaying first page after it has been downloaded and let the file continue downloading, rather than waiting for whole file to download?
No, nothing implemented at the moment to support that. Would be nice to have, agreed. But currently both the PDF and the ODF plugins only deal with complete files, so they have to be downloaded first completely.
Specifically the "background-image:" part of the CSS. What you need to do is to change texture.png to an animated loading icon (i.e., an animated gif file), set the image to non-repeating and then set the image so that it appears in the centre of the screen. You can see it live in action here: http://www.cambridgekids.org/m29/course/view.php?id=2
Login as guest. Anything is possible with programming. Endless possibilities. Cheers Frankie Kam, Malaysia.
Activity
GaboDot commentedon Sep 19, 2014
It would be helpful, large pdf's take extra time to show complete... I hope we get an answer soon = )
kossebau commentedon Feb 12, 2015
There is no implementation yet, but I agree it would be good to have. Anyone up for coding one? :)
Shreeshrii commentedon Mar 24, 2015
Is there any option that can be set for displaying first page after it has been downloaded and let the file continue downloading, rather than waiting for whole file to download?
kossebau commentedon Mar 24, 2015
No, nothing implemented at the moment to support that. Would be nice to have, agreed. But currently both the PDF and the ODF plugins only deal with complete files, so they have to be downloaded first completely.
Shreeshrii commentedon Mar 24, 2015
ok. Thanks!
vhugogarcia commentedon Apr 17, 2015
Any workaround or update to enable a loading alert or something.... ? thanks in advance
frankiekam commentedon May 27, 2015
You mean like this?

I managed to solve it. The trick is to modify this code inside index.html:
#canvasContainer {overflow: auto;padding-top: 6px;padding-bottom: 6px;position: absolute;top: 32px;right: 0;bottom: 32px;left: 0;text-align: center;background-color: #888;background-image: url(images/texture.png)}Specifically the
"background-image:"part of the CSS. What you need to do is to change texture.png to an animated loading icon (i.e., an animated gif file), set the image to non-repeating and then set the image so that it appears in the centre of the screen. You can see it live in action here: http://www.cambridgekids.org/m29/course/view.php?id=2Login as guest. Anything is possible with programming. Endless possibilities. Cheers Frankie Kam, Malaysia.
guidodo commentedon Apr 17, 2016
In essence all that is needed (for PDF files) is to split up:
PDFJS.getDocument(location).then(function loadPDF(doc) {and hook up a onProgress function:
Full patch (against source code) is attached. It'll show an overlay with a HTML5 progress bar during download.