| layout | post |
|---|---|
| title | Print Modes in Blazor PDF Viewer | Syncfusion |
| description | Learn how to configure print modes for PDF Documents in the Syncfusion Blazor PDF Viewer component and more. |
| platform | document-processing |
| control | |
| documentation | ug |
| domainurl |
The PrintMode property determines how the print dialog is opened in the PDF Viewer. By default, it is set to PrintMode.Default, which prints the document from the same browser window.
- PrintMode.Default: Prints the document from the current browser window.
- PrintMode.NewWindow: Opens the print dialog in a new window or tab. This may be affected by browser pop-up blockers.
You can configure the print mode during the initialization of the PDF Viewer component by setting the PrintMode property.
{% tabs %} {% highlight razor %}
@using Syncfusion.Blazor.SfPdfViewer
@code { public string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succinctly.pdf"; }
{% endhighlight %} {% endtabs %}
Note: Ensure that browser pop-up blockers allow new windows or tabs when using
PrintMode.NewWindow.
