Click or drag to resize

IPluginSettingsPdfViewerEnabled Property

Enables or disables the built-in PDF viewer.

Namespace:  DotNetBrowser.Plugins
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.13.0
Syntax
C#
bool PdfViewerEnabled { get; set; }

Property Value

Type: Boolean
true if the PDF viewer is enabled, false otherwise.
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IPluginSettings has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
Remarks

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.

See Also