We are creating presentation using Aspose . In the process , we parse a sample presentation and maintain the title master of the presentation in Memory. We clone the title master and add it to every new presentation. After some iterations , the clone slide throws the following error :
com.aspose.slides.PptEditException: Slide cloning error.
Caused by: java.io.IOException: Read wrong number of bytes from Escher record.
The sample code and the base presentation whose slide is cloned has been attached to reproduce the error. Please have a look into the problem and provide a solution.
It’s not possible to clone master slides. You can clone normal slides only.
Master will be cloned automatically, if necessary.
Do you mean that cloning a master slide will always cause an exception (or) you can’t guarantee whether it will work or not on the master slide.
Because , if you run the attached code , you will find that cloneSlide throws an exception only after working for a lot of times (for around 4000 times) successfully.