Table of Contents

Property PdfViewerEnabled

Namespace
DotNetBrowser.Plugins
Assembly
DotNetBrowser.dll

PdfViewerEnabled

Enables or disables the built-in PDF viewer.

bool PdfViewerEnabled { get; set; }

Property Value

bool

true if the PDF viewer is enabled, false otherwise.

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.

Exceptions

ObjectDisposedException

The IPluginSettings has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.