Click or drag to resize

IBrowser.PrintPdfContentHandler Property

Gets or sets a handler that is used when the PDF content printing is initiated.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.20.1
Syntax
C#
IHandler<PrintPdfContentParameters, PrintPdfContentResponse> PrintPdfContentHandler { get; set; }

Property Value

Type: IHandler<PrintPdfContentParameters, PrintPdfContentResponse>
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
Remarks

In this callback you can configure the print settings. The workflow is the following:

Use the Print(SystemPrinter<SystemPrinter.IPdfSettings> ) method to continue printing using the selected printer.

Use the Cancel() method to cancel printing.

If an exception occurs inside the handler implementation, the default behavior will be applied - the method Cancel() will be used.

If printing is initiated when the browser is loading a web page, this callback is not invoked.

See Also