Retrieving document information in Viewer

You can retrieve document information such as document type and size supported by HCL Docs Viewer in JSON format by the viewer application API.

Table 1. Viewer Application API

This table provides reference information for the Viewer Application APIs to get document type and size

Method URI Description Parameters or variables
GET /viewer/api/list Gets document type and size supported by the Docs Viewer in JSON format. method: The value is fileType

Example

  • GET /viewer/api/list?method=fileType

    Output: {".ods":"10240",".xls":"10240",".odt":"10240",".pptx":"30720",".txt":"10240",".ppt":"30720",".xlsx":"10240",".csv":"2048",".doc":"10240",".odp":"30720",".docx":"10240"}