GroupDocs.Viewer Cloud 19.3.2 Release Notes

Major Features

This is hot-fix release which includes 3 bug-fixes and 2 improvements.

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERCLOUD-302Update methods descriptionImprovement
VIEWERCLOUD-285Support of responsive HTML in V2 API versionImprovement
VIEWERCLOUD-284Download HTML pages in V2 API versionBug
VIEWERCLOUD-282GroupDocs.Viewer Cloud PHP SDK V2 is not proper on GitHubBug
VIEWERCLOUD-278Serialize complex types to log messageBug

Public API and Backward Incompatible Changes

IsResponsive option added to  HtmlOptions

### Retrieve access token
    curl --request POST https://api.groupdocs.cloud/connect/token \
        --header 'Content-Type: application/x-www-form-urlencoded' \
        --data 'grant_type=client_credentials&client_id=[APP_SID]&client_secret=[APP_KEY]&undefined'
    ### Result:
    {
    "access_token": "[ACCESS_TOKEN]",
    "expires_in": 86400,
    "token_type": "Bearer"
    }

### Upload file into the storage
    curl --request POST \
    'https://api.groupdocs.cloud/v2/viewer/storage/file/one-page.docx' \
    --header 'authorization: Bearer [ACCESS_TOKEN]' \
    --data-binary @"c:\temp\one-page.docx"
    ### Result:
    {
    "uploaded": [
        "one-page.docx"
    ],
    "errors": []
    }

### Create view
curl --request POST \
  'https://api.groupdocs.cloud/v2/viewer/view' \
  --header 'authorization: Bearer [ACCESS_TOKEN]' \
  --header 'Content-Type: application/json' \
  --data '{
            "FileInfo": {
                "FilePath": "one-page.docx"
            },
            "RenderOptions": {
                "IsResponsive": true
            }
          }'
    ### Result:
    {
    "pages": [
        {
        "number": 1,
        "resources": [],
        "path": "viewer/one-page_docx/p1.html",
        "downloadUrl": "https://api.groupdocs.cloud/v2.0/viewer/storage/file/viewer/one-page_docx/p1.html"
        }
    ],
    "attachments": [],
    "file": null
    }

### Download Result
    curl --request GET \
    'https://api.groupdocs.cloud/v2/viewer/storage/file/viewer/one-page_docx/p1.html' \
    --header 'authorization: Bearer [ACCESS_TOKEN]' \
    ### Result:

<Contents of viewer/one-page_docx/p1.html>