Environment
- Aspose.Slides for Java 26.4 (classifier: jdk16)
- Java 16+, running on Linux (AWS Batch container)
Problem
When loading a specific PPTX file with new Presentation(...), a
PptxReadException is thrown during loading. The file opens without any
problem in Microsoft PowerPoint, but Aspose.Slides fails to read it.
The presentation appears to contain multiple comment authors that share the
same name and the same (empty) initials in ppt/commentAuthors.xml.
It looks like Aspose.Slides enforces uniqueness on the (name, initials) pair
in CommentAuthorCollection.addAuthor(...) and throws when a duplicate is
detected, which aborts the whole loading process.
Exception / Stack trace
class com.aspose.slides.PptxReadException: The author with name ‘…’ and initials ‘’ already added
—> class com.aspose.slides.PptxEditException: The author with name ‘…’ and initials ‘’ already added
com.aspose.slides.CommentAuthorCollection.addAuthor(Unknown Source)
com.aspose.slides.o0s.i6(Unknown Source)
com.aspose.slides.r6r.i6(Unknown Source)
com.aspose.slides.r6r.i6(Unknown Source)
com.aspose.slides.Presentation.p4(Unknown Source)
com.aspose.slides.Presentation.i6(Unknown Source)
com.aspose.slides.Presentation.i6(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
…
— End of inner exception stack trace —
Code to reproduce
// Fails at the constructor call, before any editing/saving
Presentation presentation = new Presentation(inputFilePath, loadOptions);
Questions
- Is this a known issue with duplicate comment authors that share the same
name and empty initials? - Since PowerPoint opens the file without complaint, could Aspose.Slides
tolerate such duplicated comment authors on load (e.g. skip or merge the
duplicate) instead of throwing during loading? - Is there a supported way to load or repair such a file with the current
API (for example, a load option to ignore comments / comment authors), so
that the presentation can still be converted to PDF?
Thank you.