Methods
-
init(options, element)
-
Initializes the WebViewer instance.
Parameters:
Name Type Description optionsWebViewerOptions The options to initialize the WebViewer with.
elementHTMLElement The HTML element to attach the WebViewer to.
Type Definitions
-
WebViewerOptions
-
Type:
- Object
Properties:
Name Type Argument Description pathstring <optional>
The path to the WebViewer's assets.
pdfUrlstring <optional>
The initial document to load.
licensestring The license key for the WebViewer.
webFontURLstring <optional>
The URL to load web fonts from.
configstring <optional>
The path to a custom configuration file.
enableDefaultFontstring <optional>
Whether to enable the default font.
theme'LIGHT' | 'DARK' <optional>
The theme of the WebViewer.
renderLayerPermissionboolean <optional>
Determine the permissions for rendering layers.