Preview of Binary Content Files
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 the VIEWER Service or PDF renditions.
It is also possible to compare previews for two different binary content files. They can either belong 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 the 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 only be retrieved for binary content files assigned to the current version of a DMS object. This means that only the preview of the current version will be displayed, when comparing different versions of a DMS object containing a content file whose format is not supported by the VIEWER Service, but only by the PDF rendition.
If the format is neither supported by VIEWER nor RENDITION service, no content preview can be displayed.