Track Merge Progress

Introduction

Aspose.Slides Cloud provides asynchronous merge API that uses an opearation queue under the hood. This API can be useful for merging 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 merge presentations with async API, you should to the following:

  1. Call one of the async merge methods, SlidesAsyncApi.StartMerge or SlidesAsyncApi.StartMergeAndSave. The methods return operation Id.

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

  3. While the operation is in Started state you can check Progress property to track the merge progress.

  4. Once the operation is finished, you can get merge result. For StartMerge, use SlidesAsyncApi.GetOperationResult method. For StartMergeAndSave, use SlidesAsyncApi.DownloadFile method. The path parameter of DownloadFile method should be set to the value that you used as outPath parameter for SlidesAsyncApi.StartMergeAndSave method. Don’t use GetOperationResult methods to get the result of operations that have outPath parameter.

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

cURL Examples

Merge two presentations.

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

Merge two presentations.