Track Conversion Status


Aspose.Slides Cloud provides asynchronous conversion API that uses an opearation queue under the hood. This API can be useful for conversion of large files that can take considerable time. With async api, you need not wait synchronously for the operation to finish. Instead, you get operation Id, which you use to track the operation status.

To convert presentations with async API, you should to the following:

  1. Call one of the async conversion methods, SlidesAsyncApi.StartConvert, SlidesAsyncApi.StartDownloadPresentation, SlidesAsyncApi.StartConvertAndSave or SlidesAsyncApi.StartSavePresentation. The methods return operation Id.

  2. Call SlidesAsyncApi.GetOperationStatus method to check operation status. Started, Enqueued or Created means the operation is not complete. Finished, Failed or Canceled means the operation is finished or aborted.

  3. Once the operation is finished, you can get conversion result. For StartConvert and StartDownloadPresentation, use SlidesAsyncApi.GetOperationResult method. For StartConvertAndSave and StartSavePresentation, use SlidesAsyncApi.DownloadFile method. The path parameter of DownloadFile method should be set to the value that you used as outPath parameter for SlidesAsyncApi.StartConvertAndSave/SavePresentation method. Don’t use GetOperationResult methods to get the result of operations that have outPath parameter.

  4. If the operation failed, you can inspect Error property of GetOperationStatus method for the details.

cURL Examples

Convert a presentation to PDF format.

SDK Source

Using an SDK (API client) is the quickest way for a developer to speed up the development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. The Aspose.Slides Cloud SDKs can be downloaded from the following page: Available SDKs

SDK Examples

Convert MyPresentation.pptx presentation to PDF format.