IBrowserPrintPdfContentHandler Property |
Namespace: DotNetBrowser.Browser
IHandler<PrintPdfContentParameters, PrintPdfContentResponse> PrintPdfContentHandler { get; set; }
Exception | Condition |
---|---|
ObjectDisposedException | The IBrowser has already been disposed. |
In this callback you can configure the print settings. The workflow is the following:
Use the Print(SystemPrinterSystemPrinterIPdfSettings) 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.