Document Information

Note
Note:  The features listed in this page are supported only in GroupDocs.Viewer Cloud V1

Get Document Information for HTML Representation

This API retrieves document information. It returns an object that contains information about file format and file size. It also Includes information about document pages and attachments

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information(HTML representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/Test.msg/html/info" \
-X GET \
-H "Content-Type: application/json" \
-H "authorization: Bearer [Access Token]"
{
  "fileName": "Test.msg",
  "extension": ".msg",
  "fileFormat": "Microsoft Outlook Mail Message",
  "size": 99840,
  "dateModified": "2018-02-07T05:10:43Z",
  "pages": [
    {
      "number": 1,
      "name": "",
      "width": 612,
      "height": 792,
      "angle": 0,
      "visible": true
    }
  ],
  "attachments": [
    {
      "name": "password-protected.docx",
      "extension": ".docx",
      "fileFormat": "Microsoft Word"
    }
  ],
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Document Information for Image Representation

GroupDocs.Viewer Cloud also supports to retrieves document information for Image representation. This API returns an object that contains information about file format and file size. It also Includes information about document pages and attachments.

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information (Image representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/one-page.docx/image/info?extractText#true" \
-X GET \
-H "Content-Type: application/json" \
-H "authorization: Bearer [Access Token]"
{
  "fileName": "one-page.docx",
  "extension": ".docx",
  "fileFormat": "Microsoft Word",
  "size": 14252,
  "dateModified": "2017-03-28T16:44:52.7520812Z",
  "pages": [
      {
        "number": 1,
        "name": null,
        "width": 612,
        "height": 792,
        "angle": 0,
        "visible": true,
        "rows": [
            {
              "text": "First Page",
              "rowLeft": 85.05,
              "rowTop": 58.033,
              "rowWidth": 43.494,
              "rowHeight": 12.1,
              "textCoordinates": [
                85.05,
                19.404,
                106.94,
                21.604
              ],
              "characterCoordinates": [
                85.05,
                90.099,
                92.629,
                96.468,
                100.769,
                106.94,
                112.616,
                117.885,
                123.066
              ]
            }
         ]
      }
    ]
  },
  "attachments": [],
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Document Information from URL for HTML Representation

You can get document information for a document at provided URL for HTML representation. Following API retrieves file from specified URL and tries to detect file type when fileName parameter is not specified. It saves retrieved file in storage, use fileName and folder parameters to specify desired file name and folder to save file.

When file with specified name already exists in storage new unique file name will be used. It also returns object that contains information about file format and file size along with information about document pages and attachments.

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information from URL(HTML representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/html/info?url#https%3a%2f%2fwww.dropbox.com%2fs%2fumokluz338w4ng7%2fone-page.docx%3fdl%3d1" \
-X GET \
-H "Content-Type: application/json" \
-H "authorization: Bearer [Access Token]"
{
  "fileName": "one-page.docx",
  "extension": ".docx",
  "fileFormat": "Microsoft Word",
  "size": 14252,
  "dateModified": "2017-06-15T11:39:25.9611296Z",
  "pages": [
      {
        "number": 1,
        "name": null,
        "width": 612,
        "height": 792,
        "angle": 0,
        "visible": true,
        "rows": null
      }
  ],
  "attachments": [],
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Document Information from URL for HTML Representation

Get Document Information from URL for Image Representation

GroupDocs.Viewer for Cloud also supports to get document information for a document at provided URL as Image representation. Following API retrieves file from specified URL and tries to detect file type when fileName parameter is not specified. It saves retrieved file in storage, use fileName and folder parameters to specify desired file name and folder to save file.

When file with specified name already exists in storage new unique file name will be used. It also returns object that contains information about file format and file size along with information about document pages and attachments.

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information from URL (Image representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/image/info?url#https%3a%2f%2fwww.dropbox.com%2fs%2fumokluz338w4ng7%2fone-page.docx%3fdl%3d1&extractText#true&extractText#true" \
-X GET \
-H "Content-Type: application/json" \
-H "authorization: Bearer [Access Token]"
{
  "fileName": "one-page.docx",
  "folder": null,
  "extension": ".docx",
  "fileFormat": "Microsoft Word",
  "size": 14252,
  "dateModified": "2017-06-15T14:10:59.8956848Z",
  "pages":  [
      {
        "number": 1,
        "name": null,
        "width": 612,
        "height": 792,
        "angle": 0,
        "visible": true,
        "rows": [
            {
              "text": "First Page",
              "rowLeft": 85.05,
              "rowTop": 58.033,
              "rowWidth": 43.494,
              "rowHeight": 12.1,
              "textCoordinates": [
                85.05,
                19.404,
                106.94,
                21.604
              ],
              "characterCoordinates": [
                85.05,
                90.099,
                92.629,
                96.468,
                100.769,
                106.94,
                112.616,
                117.885,
                123.066
              ]
            }
         ]
      }
    ]
  },
  "attachments": [],
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Document Information with DocumentInfoOptions for HTML Representation

You can get document information for a document with specified DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject). API expects DocumentInfoOptions common-resources/options-objects/#HDocumentInfoOptionsObject)object data in request body. It returns an object that contains information about file format and file size. It also Includes information about document pages and attachments.

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information with DocumentInfoOptions(HTML representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/excel.xlsx/html/info" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"cellsOptions":{"renderGridLines":true,"paginateSheets":true,"encoding": null,"internalHyperlinkPrefix":"prefix","countRowsPerPage":60,"textOverflowMode":"HideText","ignoreEmptyRows":false}}" \
-H "authorization: Bearer [Access Token]"
 
{
  "fileName": "excel.xlsx",
  "extension": ".xlsx",
  "fileFormat": "Microsoft Excel",
  "size": 7825,
  "dateModified": "2017-06-15T11:39:25.9611296Z",
  "pages": [
    {
      "number": 1,
      "name": "Sheet1",
      "width": 342,
      "height": 165,
      "angle": 0,
      "visible": true,
      "rows": null
    }
  ],
  "attachments": [],
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Document Information with DocumentInfoOptions for Image Representation

GroupDocs.Viewer for Cloud also supports to get document information for a document with specified DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject) as Image representation. API expects DocumentInfoOptions common-resources/options-objects/#HDocumentInfoOptionsObject)object data in request body. It returns an object that contains information about file format and file size. It also Includes information about document pages and attachments.

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information with DocumentInfoOptions (Image representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/excel.xlsx/image/info" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"cellsOptions":{"renderGridLines":true,"textOverflowMode":"HideText"}}" \
-H "authorization: Bearer [Access Token]"
{
  "fileName": "excel.xlsx",
  "extension": ".xlsx",
  "fileFormat": "Microsoft Excel",
  "size": 7825,
  "dateModified": "2017-06-15T14:10:59.8956848Z",
  "pages": [
    {
      "number": 1,
      "name": "Sheet1",
      "width": 208,
      "height": 21,
      "angle": 0,
      "visible": true,
      "rows": null
    }
  ],
  "attachments": [],
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Document Information for Document Passed in Request Body for HTML Representation

You can retrieve document information for posted document. API saves file in storage. It uses fileName and folder parameters to specify desired file name and folder to save file. When file with specified name already exists in storage new unique file name will be used for file.

API also returns an object that contains information about file format, file size, information about document pages and attachments. We can pass document content or multipart content where first part is document and second is DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject) object data to request body.

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information of document passed in request body(HTML representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/html/info?fileName#one-page.docx" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"cellsOptions":{"renderGridLines":true,"paginateSheets":true,"encoding": null,"internalHyperlinkPrefix":"prefix","countRowsPerPage":60,"textOverflowMode":"HideText","ignoreEmptyRows":false}}" \
-H "authorization: Bearer [Access Token]"
{
  "fileName": "one-page.docx",
  "folder": null,
  "extension": ".docx",
  "fileFormat": "Microsoft Word",
  "size": 14252,
  "dateModified": "2017-06-15T12:03:04.1474906Z",
  "pages": [
      {
          "number": 1,
          "name": null,
          "width": 612,
          "height": 792,
          "angle": 0,
          "visible": true,
          "rows": null
      }
  ],
  "attachments": [],
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Document Information for Document Passed in Request Body for Image Representation

You can retrieve document information for posted document for image representation. API saves file in storage. It uses fileName and folder parameters to specify desired file name and folder to save file. When file with specified name already exists in storage new unique file name will be used for file.

API also returns an object that contains information about file format, file size, information about document pages and attachments. We can pass document content or multipart content where first part is document and second is DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject) object data to request body.

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information for document passed in request body (Image representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/image/info?fileName#one-page.docx" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"wordsOptions":{"renderTrackedChanges":false}}" \
-H "authorization: Bearer [Access Token]"
{
  "fileName": "one-page.docx",
  "extension": ".docx",
  "fileFormat": "Microsoft Word",
  "size": 47,
  "dateModified": "2017-06-15T12:03:04.1474906Z",
  "pages": [
    {
      "number": 1,
      "name": null,
      "width": 612,
      "height": 792,
      "angle": 0,
      "visible": true,
      "rows": null
    }
  ],
  "attachments": [],
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Document Information from URL with DocumentInfoOptions for HTML Representation

You can retrieve document information for document from provided URL for HTML representation. The API retrieves document information with specified DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject).

It expects DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject) object data in request body.

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information from URL with DocumentInfoOptions (HTML representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/html/info?url#https%3a%2f%2fwww.dropbox.com%2fs%2fumokluz338w4ng7%2fone-page.docx%3fdl%3d1" \
-X PUT \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"wordsOptions":{"renderTrackedChanges":false}}" \
-H "authorization: Bearer [Access Token]"
{
    "fileName": "one-page.docx",
    "folder": null,
    "extension": ".docx",
    "fileFormat": "Microsoft Word",
    "size": 14252,
    "dateModified": "2017-06-15T12:03:04.1474906Z",
    "pages": [
        {
            "number": 1,
            "name": null,
            "width": 612,
            "height": 792,
            "angle": 0,
            "visible": true,
            "rows": null
        }
    ],
    "attachments": [],
    "startDate": "0001-01-01T00:00:00",
    "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Document Information from URL with DocumentInfoOptions for Image Representation

You can retrieve document information for document from provided URL for HTML representation. The API retrieves document information with specified DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject).

It expects DocumentInfoOptionscommon-resources/options-objects/#HDocumentInfoOptionsObject) object data in request body.

The following GroupDocs.Viewer Cloud REST API resource has been used to get document information from URL with DocumentInfoOptions (Image representation).

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/image/info?url#https%3a%2f%2fwww.dropbox.com%2fs%2fumokluz338w4ng7%2fone-page.docx%3fdl%3d1" \
-X PUT \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"wordsOptions":{"renderTrackedChanges":false}}" \
-H "authorization: Bearer [Access Token]"
{
  "fileName": "one-page.docx",
  "extension": ".docx",
  "fileFormat": "Microsoft Word",
  "size": 47,
  "dateModified": "2017-06-15T12:03:04.1474906Z",
  "pages": [
    {
      "number": 1,
      "name": null,
      "width": 612,
      "height": 792,
      "angle": 0,
      "visible": true,
      "rows": null
    }
  ],
  "attachments": [],
  "startDate": "0001-01-01T00:00:00",
  "endDate": "0001-01-01T00:00:00"
}

SKD examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.