Click or drag to resize

IDialogsSaveAsPdfHandler Property

Gets or sets a handler that is used when the browser requests to display a file chooser dialog to save content as PDF.

Namespace:  DotNetBrowser.Browser.Dialogs
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.13.0
Syntax
C#
IHandler<SaveAsPdfParameters, SaveAsPdfResponse> SaveAsPdfHandler { get; set; }

Property Value

Type: IHandlerSaveAsPdfParameters, SaveAsPdfResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
Remarks

You can use this handler to display the save dialog, or provide the full file path without displaying any dialogs.

Use the SaveToFile(String) method to provide the selected files to the browser.

Use the Cancel method to cancel the dialog.

If the handler throws an exception, the Cancel method will be invoked.

See Also