How can I help you?
Perform print in same window in Blazor SfPdfViewer Component
14 Oct 20251 minute to read
Use the SfPdfViewer2 PrintMode enum to control whether printing occurs in the same window or a new window. Available values are PrintMode.Default and PrintMode.NewWindow.
-
Default - Prints in the same window using
PrintMode.Default. -
NewWindow - Opens printing in a new browser window or tab (may be affected by pop-up blockers) using
PrintMode.NewWindow.
@using Syncfusion.Blazor.SfPdfViewer
<SfPdfViewer2 PrintMode="PrintMode.Default"
DocumentPath="@DocumentPath"
Height="100%"
Width="100%"></SfPdfViewer2>
@code {
private string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succinctly.pdf";
}