Process large files without increasing maximum message size

The Blazor SfPdfViewer component supports processing large files without increasing the SignalR hub maximum receive message size (MaximumReceiveMessageSize, 32 KB) by using chunk messaging.

Enable this behavior by setting EnableChunkMessages to true. The default is false.

The following example shows how to enable chunk messaging:

@using Syncfusion.Blazor.SfPdfViewer

<SfPdfViewer2 @ref=" PdfViewer" EnableChunkMessages="true" DocumentPath="@DocumentPath" Height="100%" Width="100%">
</SfPdfViewer2>

@code {
    SfPdfViewer2 PdfViewer;
    public string DocumentPath { get; set; } = "wwwroot/data/PDF Succinctly.pdf";
}

With EnableChunkMessages set to true, the viewer segments large payloads into smaller chunks and processes them sequentially. This improves reliability when loading large PDFs under SignalR message size limits.

View the chunk messaging sample on GitHub.