Cloning MasterSlide Is Not Working

Dear Aspose team,

The documentation of the methods related to the master slides is outdated and the PHP example is not working:

Do you have a working example to share?

@nils.krause,
Thank you for reporting the issue.

You are right, this article also contains outdated code examples. We are working on updating Slides Cloud documentation. We apologize for any inconvenience. The following PHP code example shows you how to clone a master slide:

// Copy the first master slide from Source.pptx to MyPresentation.pptx.
$response = $slidesApi->copyMasterSlide("MyPresentation.pptx", "Source.pptx", 1);
echo $response;

More examples: Use Cases
API Reference: CopyMasterSlide

Dear Andrey,

I am receiving this error message with the method: copyMasterSlide

Something went wrong: [404] Client error: POST https://api.aspose.cloud/v3.0/slides/Agenda-1.pptx/masterSlides?cloneFrom=Agenda-74513.pptx&cloneFromPosition=1 resulted in a 404 Not Found response: {“requestId”:“dfb0b9d5-cf1c-4fe2-ae91-0790ad0119a8”,“error”:{“code”:“errorAmazonS3Storage”,“message”:"AmazonS3 Storage e (truncated…)

@nils.krause,
It looks like a presentation file was not found. Please check carefully whether the presentations exist in a storage and try to use the latest version of Aspose.Slides Cloud API if it is possible. If the issue persists, please share the following data and information:

  • Agenda-1.pptx and Agenda-74513.pptx files
  • code example that reproduces the error
  • Aspose.Slides Cloud API version and PHP version you used