Render N number pages on scrolling

13 Dec 20241 minute to read

The OverscanCount feature in a PDF Viewer allows users to preload/render specified number of pages before and after the visible view port when opening a PDF document, thereby enhance the scrolling experience.

To utilize this capability in Syncfusion® PDF Viewer, adjust the OverscanCount property. By setting this property to a desired number, users can preload pages adjacent to the active page. This ensures quicker access to specific pages without waiting for the entire document to load.

Below is a code snippet illustrating how to implement the OverscanCount:

<SfPdfViewer2 DocumentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
              Height="100%"
              Width="100%" OverscanCount="10">
</SfPdfViewer2>

View sample in GitHub.