Suppress the error dialog in Blazor PDF Viewer Component

17 Dec 20221 minute to read

The Syncfusion’s Blazor PDF Viewer component allows you to suppress or disable the error dialog box displayed in the PDF Viewer using the EnableErrorDialog property. The default value of the property is true.

The following code example shows how to suppress the error dialog.

@using Syncfusion.Blazor.PdfViewer

<SfPdfViewer @ref="PdfViewer" ServiceUrl="https://localhost:44399/pdfviewer"  DocumentPath="@DocumentPath" EnableErrorDialog="false" Height="500px" Width="1060px">
</SfPdfViewer>

@code{
    SfPdfViewer PdfViewer;
    private string DocumentPath { get; set; } = "PDF_Succinctly.pdf";
}

Find the sample, How to suppress the error dialog in the Blazor PDF Viewer

NOTE

You can refer to our Blazor PDF Viewer feature tour page for its groundbreaking feature representations. You can also explore our Blazor PDF Viewer example to understand how to explain the core features of the PDF Viewer.