We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Throwing a "StringIndexOutOfBoundsException" when Working with PPTX (2851)

Hi,

I am writing to you about a problems we encountered in working with MSO PowerPoint document using the Aspose Slides for Java library (v21.10).

Specifically, when we try to delete and then immediately add a Portion objects (new one, custom made, similar to the original) to same the Tables’ Paragraphs, and then save the file into same format (pptx) there is a problem, more precisely throwing an exception (StringIndexOutOfBoundsException: index 1,length 1).

I am enclosing the zip file with test code, as well as the source PP file.

In the hope that together we will quickly overcome the problem!
Best regards!

Nenad

test code and file.zip (60.3 KB)

@zpredojevic,
Thank you for reporting the issue.

I’ve reproduced the problem with replacing text portions and added a ticket with ID SLIDESJAVA-38771 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate this case. You will be notified when the issue is resolved.