Free Support Forum - aspose.cloud

Merge PowerPoint Presentation in Aspose.Slides Cloud

Thank you it works now. I was testing the other services and came across an issue when testing the merging of two presentations to one:

this is the curl:
curl -v “http://api.aspose.cloud/v1.1/slides/merged_file.pptx/merge
-d ‘{“PresentationPaths”: [“f:/mufeel-slide-00.ppt”,“f:/hello.pptx”]}’
-X POST
-H “Content-Type: application/json”
-H “Accept: application/json”
-H “Authorization: Bearer XXXX”

I am getting the following error:
{“Message”:“AmazonS3 exception: Error ‘The specified key does not exist.’, Bucket ‘afc-filestorage’, FilePath ‘53819/cb2a18e5-4733-4b5c-adfa-a94c74a39a28/merged_file.pptx’”}

Please let me know the issue

@mufeel

Before calling the POST /slides/{name}/merge API, you need to upload the input files, in your case merged_file.pptx, mufeel-slide-00.ppt and hello.pptx, to Aspose Cloud Storage.

The following cURL example merges the welcome.pptx file with sample.pptx and sample-input.pptx files:

// cURL example to merge pptx files
curl -v "https://api.aspose.cloud/v1.1/slides/welcome.pptx/merge" \
-X POST \
-d '{ "PresentationPaths": [ "sample.pptx", "sample-input.pptx" ], "PresentationPasswords": [ ] }' \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer ZxgTK_qfThIadwnuUImVEyJCD-LltGaXJt_ej7gn9wdqUBVbRHFI0tq3mSFmvlaYXEos2dHKx5siVIp7unQP7PhSbpStPLf1gP-iypCJEfaQRGmoovHGBB2bo29g85IJUBae98F5mrXRitRcwXrnPAUk-S2K1fFvAp5OmwGFFPtzutX26g21BGFuZQO83QLg7MwKAas4XWWsPyKvVKaIv6AgyUHIwBn-o2G38R9cCCgotWRnpc-1h_6NCGYvKawZ2YsPK1WhvkdS7a-dav6snKxKUSq5p4JA8vZItfOq2LfzA7BNe6OQtOzOoyh6ONmjxJL4mhneUi95jen7tP5bInlN36KIM1f6Ammuy_n_mFK1DMzwVOhuShODqjGhbacpjPbBSLuvo4YpgloqQayMSb1DIgXxWyRZHKuFwRsYse_lOGPF3t1eR8LGrFrWwi_lJ39F-Vbdsc7jjhV94MCDNN_PGHc"

This is what my Cloud Storage looks like: