Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.88 KB

File metadata and controls

51 lines (35 loc) · 1.88 KB
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 Print
documentation ug
domainurl

Print Modes in Blazor PDF Viewer

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.

Available print modes

  • 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.

Set print mode

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 %}

Print in New Window

Note: Ensure that browser pop-up blockers allow new windows or tabs when using PrintMode.NewWindow.

View samples on GitHub

See also