PptxReadException : An Element with the Same Key Already Exists in the Dictionary

We are running some basic test with aspose, but with some pptx files (see the attached one), we are having errors. Our application generates PPTX files concatenating some templates. The result file is ok for microsoft powerpoint, libreoffice and google presentation, but it seems that something is wrong for the aspose library.

If we run the same test with a simple file, before the concatenation, it works fine.

Could we get some help on this issue?

environment: java 17 on mac

source code:

public class ConvertPowerPointToPDFWithAspose {
	static {
		// Instantiates the License class
		com.aspose.slides.License license = new com.aspose.slides.License();

		// Sets the license file path
		license.setLicense("/Users/mcprol/_dev_report_engine/samples/Aspose.SlidesforJava.lic");
	}
		
    public static void main(String []args) throws Exception {

        //Create a Presentation instance
        
        String pptxFileName = args[0];
        String pdfFileName = args[1];
        
        Presentation pres = new Presentation(pptxFileName);
        try {
            // Saves the presentation as a PDF
            pres.save(pdfFileName, SaveFormat.Pdf);
        } finally {
            if (pres != null) pres.dispose();
        }
    }
}

sample pptx file: report_merge_all.pptx - Google Drive

@marcoscacabelos,
Thank you for contacting free support. I need some time to check the problem. I will get back to you soon.

@marcoscacabelos,
The PowerPoint presentation file you provided is damaged. I was unable to open it in PowerPoint. That’s why the error appears when loading it with Aspose.Slides for Java. If it was created using Aspose.Slides, could you please share the source files and sample code to generate it?

You are right Andrey.
We were testing with a bundle of files, and this one was corrupted.

Sorry for the inconveniences.
Regads
Marcos

@marcoscacabelos,
Please feel free to reach out if you have any additional questions.