PdfViewer - real Lazy loading

Hello Support, 

We are implementing Synfusion controls for our asp mvc project and so far so good. I would appreciate your support to implement a key feature that would solve a huge problem for us regarding saving large files.


We have an application that stores and serves large pdf documents, sometimes over 200 MB in size and over couple hundereds/thousands of pages. Those PDF are not ready on disk and will be exported to memory stream/disk open request. The process takes around 2 mins to export 200 MB of data. 


We are looking for a solution that would allow us to serve page ranges instead of the whole file to pdfviewer? 


Ideally, we want to be able to:

  1. send the requested pages to the controller method (is this still load method?)  
  2. a call to our application to serve the requested page range is made 
  3. pdviewer displays only the viewed pdf page range 
  4. subsequent page requests resumes steps 1 to 3. 

Appreciate your support. 

Omran

1 Reply

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team September 26, 2023 11:52 AM UTC

As per the current PDF Viewer architecture, we only render the first 2 pages on the initial rendering and then we are rendering other pages on-demand while scrolling to optimize the performance. It is our default behavior.


If you are experiencing slow loading times for your specific document, we would appreciate it if you could share the document with us and sample code to initialize the PDF Viewer control. This will enable us to investigate the issue more effectively.


Loader.
Up arrow icon