Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pdf.js how to lazy load a 100 page pdf file ?

3,845 views
Skip to first unread message

prad...@gmail.com

unread,
Mar 4, 2013, 6:10:09 PM3/4/13
to
I am using pdf.js to view pdfs in my website. It works great except that when the file size is large (> 15 mb ). It takes a while to download and when download is complete pdf.js displays them. Is there a way pdf.js can show the pages incrementally so that the user can see at least some pages that are available ?

Thanks,
Pradhan

Silas Santana

unread,
Mar 5, 2013, 5:02:48 PM3/5/13
to
Hi my problem is similar, but worst. When the file is over 15MB it loads well in Firefox after a while, but it times out on Chrome. Any ideas?

Thanks,
Silas

honeyp...@gmail.com

unread,
Mar 8, 2013, 2:26:55 PM3/8/13
to

Same here, but trying to use it in an embedded Android WebView that crashes because of "out of memory" when the PDF is too large.

Any advice to tune PDF.js, to lazy load files, will be more than welcome!

Thanks.
Regards.

arnoutae...@gmail.com

unread,
Mar 23, 2013, 1:36:41 PM3/23/13
to
I think a lazy load function would indeed be amazing! The thing I do now is this: Divide the pdf in different pages and display them one by one. This is quite heavy for the browser to display them all though
0 new messages