We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

keep document loaded at all times (not dynamically)

Hello everyone, I have a question regarding PDF loading. I have noticed that when I load a PDF, the scrolling is a bit laggy and it seems that only the visible pages are loaded. The rest of the pages load as I scroll through. Is there a way to load the entire PDF at once so that it does not lag when I am scrolling? Thank you for your help.



3 Replies

DR Deepika Ravi Syncfusion Team May 2, 2023 05:45 AM UTC

Hi Muhammad Waleed Amir,


We retrieve the PDF pages from the native platform renderer and loaded those pages in our Flutter PDF Viewer only based on the virtualization, that is initially 3 pages will be rendered and on-demand scrolling rest of the pages will be rendered. If we load all the pages at once, it will increase the loading time and memory consumption depending on the size of the document and so, we have avoided that behavior.


Regards,

Deepika R



MW Muhammad Waleed Amir replied to Deepika Ravi May 7, 2023 09:46 AM UTC

Hi Deepika,


Thank you for getting back to me and providing such helpful information.


I'm curious if you have any clever solutions on how to improve the scroll functionality for the end user. I understand that you are very careful about the memory constraints, but I would be grateful if you could share your insights on how to achieve a more satisfying user experience.


I appreciate your attention and expertise.


Best regards.



DR Deepika Ravi Syncfusion Team May 10, 2023 01:06 AM UTC

Hi Muhammad, Our current implementation is suitable for documents of all sizes. While it works well for small PDF documents that load all pages at once but we encounter memory constraints when dealing with larger and high-quality PDF documents. Therefore, we do not have the capacity to accommodate your requirement.


Loader.
Up arrow icon