Webviewer: Lazy Loading in Linearized PDF Documents

WebViewer Version:

Do you have an issue with a specific file(s)?
Yes, with large files and their loading optimizations

Can you reproduce using one of our samples or online demos?
Yes, it can be reproduced via the link: JS Large Files Viewer Demo | Apryse WebViewer

Are you using the WebViewer server?
No

Does the issue only happen on certain browsers?
No, all browsers

Is your issue related to a front-end framework?
No

Is your issue related to annotations?
No

Please give a brief summary of your issue:
Webviewer: Lazy Loading in Linearized PDF Documents

Please describe your issue and provide steps to reproduce it:
Is there any strategy to load large PDF documents in a lazy loading way? When we work with linearized documents all sliced chunks are loaded even if the user does not reach the corresponding page. This ends up causing expensive data usage costs in large pdf scenarios

Please provide a link to a minimal sample where the issue is reproducible:

Hello @shiroma ,

Thank you for contacting WebViewer support,

If you want to only download parts of a document that are being viewed, you can try converting them to XOD files and viewing those.

By default, XOD files implement lazy loading, only downloading the parts of the file that are required to display the currently visible pages. You can find more info here (the guide eventually starts talking about streaming XOD files, which we do not recommend for large files): Streaming-option | Apryse Documentation

That said, XOD files are meant for fast viewing, so we do not recommend this approach if you need to edit/annotate the file that you are viewing. We also recommend keeping a copy of the original PDF.

Let me know if this works for you!

Best Regards,
Jacob Romano Carlsen
Web Development Support Engineer
Apryse Software Inc.