Open Document in Web SDK

To load a document from DWS Viewer API, pass the document’s session token for authentication in the configuration object passed to PSPDFKit.load():

JavaScript
NutrientViewer.load({
  container: "<container>",
  session: "<session_token>"
});

The <container> placeholder in the code above should be replaced by a CSS selector or a DOM element where Nutrient Web SDK will be mounted.

The <session_token> placeholder should be replaced by the session token obtained from the DWS Viewer API dashboard, or through its API. Session tokens are used for authenticating Nutrient Web SDK clients when connecting to DWS Viewer API.

Requirements

DWS Viewer API requires Nutrient Web SDK versions 1.1.1 or later.

More information

Refer to additional resources to learn more about Nutrient Web SDK: