Comparison between Document Preview V1 and V2

更新时间:
复制 MD 格式

Intelligent Media Management offers two document preview versions: V1 and V2. This topic describes the main differences between them. Document Preview V1 is no longer updated or maintained. We recommend that you use Document Preview V2.

Important

This document is no longer maintained. We recommend that you use the new version of Intelligent Media Management.

How it works

Version

Description

Document Preview V1

Document Preview V1 converts an input document to the VECTOR format. It then uses the frontend rendering engine from Intelligent Media Management to create a user-friendly and customizable preview. For more information, see How it works.

Document Preview V2

Document Preview V2 gets the document URL and AccessToken. You do not need to specify an iframe element. A JS file automatically generates an iframe under a custom block element. The JS file then sets the AccessToken to quickly create the document preview. For more information, see How it works.

Preview methods

Version

Description

Document Preview V1

The Intelligent Media Management preview engine supports two methods: URL parameter preview and JavaScript API preview. The URL parameter method is simpler. The JavaScript API method provides more configuration options. Choose the method that fits your scenario. For more information, see Comparison of preview methods.

Document Preview V2

Call the GenerateWebofficeToken API to get the collaboration URL. Use the JS-SDK to mount the preview URL to an HTML block element and set the AccessToken. A JS file automatically generates an iframe under the custom block element and sets the AccessToken to quickly create the document preview. For more information, see Preview flow.

Supported features

Item

Document Preview V1

Document Preview V2

Description

Page customization

Not supported

Support

Use the page customization feature in Document Preview V2 to add, hide, or enable components. For more information, see Page customization overview.

Add watermarks

Supported (frontend)

Supported

  • Document Preview V1: Add watermarks using the JavaScript API preview method. For more information, see JavaScript API preview.

  • Document Preview V2: Call the GenerateWebofficeToken API and configure the Watermark parameter to add watermarks.

User information

Not supported

Support

Call the GenerateWebofficeToken API in Document Preview V2 and configure the User parameter to set user information.

User permissions

Not supported

Supported

Call the GenerateWebofficeToken API in Document Preview V2 and configure the Permission parameter to set user permissions.

Document configuration

Version

Description

Document Preview V1

Document Preview V1 supports copying text, scaling content without aliasing, and configuring custom ads. For more information, see Quick Start.

Document Preview V2

Document Preview V2 supports custom configurations, such as event listeners and various document-related settings. For more information, see Custom configurations.