A library-based client can display a preview of the binary content file.
Table of Contents
Introduction
In addition to forms containing the metadata of a DMS object, a preview of the binary content file assigned to it can be displayed. In a client application based on our developer libraries, the content preview is retrieved either via VIEWER Service or PDF renditions.
It is also possible to compare those previews for two different binary content files - either belonging to two different DMS objects or to two different versions of the same object.
Supported Formats
The content preview can be displayed if the file type of the binary content file is supported.
- If possible, the VIEWER service is always used.
>> Formats supported by VIEWER Service - If the format is not supported by the VIEWER service, a PDF rendition is requested and displayed if the format is supported.
>> GET /api/dms/objects/{objectId}/contents/renditions/pdf
Note: A PDF rendition can be retrieved only for binary content files assigned to the current version of DMS objects. This can have an effect, when comparing different versions of a DMS-Object, and the format of its content file is not supported by the Viewer Service, but only by the PDF rendition. In this case, only the preview for the current version will be displayed.
If the format is neither supported by VIEWER nor RENDITION service, no content preview can be displayed.