Nutrient Web SDK can be used in three common ways. The viewer API in your frontend is similar across these options, but authorization, document storage, and licensing differ. If you’re comparing licensed Web SDK with DWS Viewer API specifically, refer to the Web SDK vs. DWS Viewer API guide.
Web SDK with a license key
Use this path when your app owns document delivery and authorization. Web SDK loads documents directly in the browser using document and a Web SDK licenseKey.
This path works well when:
Your app already controls document access.
Documents should render directly in the browser.
You want fixed Web SDK licensing instead of DWS Viewer API usage-based viewer sessions.
You need browser-only operation without DWS authorization, such as offline use with self-hosted assets.
Web SDK with DWS Viewer API
Use this path when you want DWS Viewer API to authorize and meter viewer sessions. Web SDK loads with a session value. Use a session token from your backend or a publishable key for app-provided documents.
DWS Viewer API supports two document sources:
DWS-managed documents uploaded to and stored by DWS.
App-provided documents with session and document.
For app-provided documents, omit licenseKey. Each viewer load needs a connection to DWS, but an open viewer keeps working without one.
Web SDK with self-hosted Document Engine
Use this path when you want to run Document Engine in your own infrastructure. Document Engine handles server-side storage, rendering, synchronization, and advanced processing, while Web SDK provides the browser UI.
This path works well when you:
Need to operate the backend yourself.
Want server-side document rendering and processing.
Need built-in annotation and form synchronization.
Need Document Engine features such as OCR and Instant collaboration.
Compare the options
Option
Document source
Authorization
Backend
Web SDK with a license key
Your app provides documents to Web SDK
Web SDK license key
None required
Web SDK with DWS Viewer API
DWS-managed documents or app-provided documents
DWS Viewer API session
Required for DWS-managed documents; optional for app-provided ones