Global

Methods


init(options, element)

Initializes the WebViewer instance.

Parameters:
Name Type Description
options WebViewerOptions

The options to initialize the WebViewer with.

element HTMLElement

The HTML element to attach the WebViewer to.

Type Definitions


WebViewerOptions

Type:
  • Object
Properties:
Name Type Argument Description
path string <optional>

The path to the WebViewer's assets.

pdfUrl string <optional>

The initial document to load.

license string

The license key for the WebViewer.

webFontURL string <optional>

The URL to load web fonts from.

config string <optional>

The path to a custom configuration file.

enableDefaultFont string <optional>

Whether to enable the default font.

theme 'LIGHT' | 'DARK' <optional>

The theme of the WebViewer.

renderLayerPermission boolean <optional>

Determine the permissions for rendering layers.