IPluginSettingsPdfViewerEnabled Property |
Namespace: DotNetBrowser.Plugins
bool PdfViewerEnabled { get; set; }
Exception | Condition |
---|---|
ObjectDisposedException | The IPluginSettings has already been disposed. |
ConnectionClosedException | The connection to the Chromium engine is closed. |
This setting controls how DotNetBrowser handles navigations to web pages embedding PDF documents. When the PDF viewer is enabled, then the PDF document will be displayed in the PDF viewer. Otherwise, the engine will download the PDF document, like any other resource that cannot be rendered in the browser. The download can be configured via the StartDownloadHandler.
Changing this setting affects only subsequent navigations and does not affect the already loaded web pages.
By default, the PDF viewer is enabled.