Document Web Services Viewer API

Nutrient Document Web Services Viewer API is a service that integrates with Document Engine to support our Web SDK. It enables document rendering, processing, and storage in web applications.

Limits on file sizes and operation complexity depend on your subscription plan. To get started, sign up(opens in a new tab) for a free plan, or contact our Sales team for custom enterprise solutions.

This guide explains how to upload a document, generate a token, and integrate the DWS Viewer API with Web SDK to render and display a document in your application.

Prerequisites

Before you begin, sign up(opens in a new tab) for a free account in the Document Web Services (DWS) dashboard.

Getting started

Follow the steps below:

  1. Upload your document

  2. Generate or copy a session token

    • If you uploaded the document from the DWS dashboard, use the testing token generated on the dashboard and paste it into your code.
    • If you uploaded with the DWS Viewer API, generate a token programmatically. To do this, obtain an API key from the DWS dashboard(opens in a new tab) (navigate to API Keys in the left sidebar) and follow the generate a session token guide.

    You can configure token settings such as expiry date, time, and editing permissions. For details, refer to the DWS API authentication guide.

  3. Integrate Nutrient Web SDK

    • Use Web SDK to render and display the document in your application.
    • Refer to the Web SDK getting started guide to set up your preferred frontend framework.
    • Pass the session token from step 2 above in the configuration object for the NutrientViewer.load() method. For more details, refer to open a document in Web SDK.

    The DWS Viewer API automatically persists any changes made to the document in the web viewer.