Power Point is not being converted to PDF using Microsoft Graph API calls

Viewed 222

I am using Microsoft Graph calls to convert my presentation into pdf. Usually it converts successfully for general presentations but it fails if size of my ppt is little big(around 1 MB) or contains some high quality graphic images. I'm getting this response:

{
"error":{
      "code": "notSupported",
      "message": "Error from Office Service. Url=https://pptcs.officeapps.live.com/document/export/pdf HttpCode=BadRequest cert=subject:;thumbprint: ResponseHeaders=X-ErrorCode: PPTCannotPrint\r\nX-ErrorCategory: BadRequest\r\nX-IsRetriable: False\r\nX-FileDownloadTimeInMs: 718.7589\r\nX-ClientCorrelationId: 8bec156c-9d05-4422-a35f-d85f26189bfb\r\nX-ServiceCorrelationId: 8bec156c-9d05-4422-a35f-d85f26189bfb\r\nX-ConversionTimeInMs: 140.6285\r\nCache-Control: private\r\nDate: Sat, 12 Sep 2020 18:28:17 GMT\r\nServer: Microsoft-IIS/10.0\r\nX-AspNet-Version: 4.0.30319\r\nX-Powered-By: ASP.NET\r\n",
      "innererror": {
        "code": "invalidFileFormat"
      }
    }
}

Is it a known problem, also Is there any workaround for that?

0 Answers
Related