Render multiple pages while scrolling in Blazor SfPdfViewer
17 Jul 20261 minute to read
Use the OverscanCount property to preload a specified number of pages before and after the current viewport, improving perceived performance while scrolling through a PDF document.
To use this capability in the Blazor SfPdfViewer, set OverscanCount to the desired number of adjacent pages to render. This reduces wait time when navigating between pages. Tune the value based on the device capability and document size.
The following example shows how to set OverscanCount:
@using Syncfusion.Blazor.SfPdfViewer
<SfPdfViewer2 DocumentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
Height="100%"
Width="100%" OverscanCount="10">
</SfPdfViewer2>View the OverscanCount sample on GitHub.