How can I help you?
Render multiple pages while scrolling in Blazor SfPdfViewer
1 Oct 20251 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 across pages. Tune the value based on device capability and document size.
The following example shows how to set OverscanCount:
<SfPdfViewer2 DocumentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
Height="100%"
Width="100%" OverscanCount="10">
</SfPdfViewer2>