Table of Contents
- Getting Started
- EO.Pdf
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
- .NET API Reference
- EO.Base
- EO.Base.UI
- EO.Extensions
- EO.Extensions
- Classes
- HtmlToPdfExtension Class
- PdfViewerExtensions Class
- WebViewExtensions Class
- EO.Pdf
- EO.Pdf.Acm
- EO.Pdf.Contents
- EO.Pdf.Drawing
- EO.Pdf.Mvc
- EO.Web
- EO.WebBrowser
- EO.WebBrowser.DOM
- EO.WebEngine
- EO.WinForm
- EO.Wpf
- EO.Wpf.Gauge
- EO.Wpf.Gauge.Shapes
- EO.Wpf.Primitives
- EO.Wpf.Themes.Aero
- EO.Wpf.Themes.Classic
- EO.Wpf.Themes.Luna
- EO.Wpf.Themes.Metro
- EO.Wpf.Themes.Royale
- JavaScript API Reference
- .NET API Reference
PdfViewerExtensions.PrintAsync Method |
Print the PDF file that is currently loaded in the PDF Viewer.

public static Task<T> PrintAsync(
IPdfViewer viewer,
PrinterSettings printerSettings = null,
PageSettings pageSettings = null
);
IPdfViewer viewer,
PrinterSettings printerSettings = null,
PageSettings pageSettings = null
);
Parameters
- viewer
- The PDF Viewer object.
- printerSettings
- Set the default printer settings. Pass null to display the print dialog to ask user for the settings.
- pageSettings
- Set the default page settings. Pass null to use DefaultPageSettings of the printerSettings argument.

If a valid printerSettings value is supplied, then the print dialog will not be shown. The following code demonstrates how to "silent print" with the default printer:
PdfViewer1.Print(EO.WebBrowser.WebView.GetDefaultPrinterSettings());
