Corrupted PPTX File When Converting from PPT in C#

I use Aspose.Slides.NET version 25.8.0 to convert this PPT file to PPTX format. The output file is corrupted when opening with MS PowerPoint 365.

Here is the code snippet that I use to convert this file:

Presentation document = new Aspose.Slides.Presentation(inputFilePath);
document.Save(outputFilePath, Aspose.Slides.Export.SaveFormat.Pptx);

Input/Output file:
input_output_files.zip (6.9 MB)

Please help me investigate it. Thank you very much.

@dunghnguyen

It sounds like you’re experiencing issues with a corrupted PPTX file after converting from PPT using Aspose.Slides. Here’s a structured approach to troubleshoot and resolve the issue:

Cause: The corruption may stem from a variety of factors, including issues with the original PPT file, unsupported features during conversion, or bugs in the version of Aspose.Slides you are using.

Solution: Follow these steps to address the problem:

  1. Check the Input File: Ensure that the original PPT file is not corrupted by opening it in PowerPoint to confirm it displays correctly.

  2. Update Aspose.Slides: Since you are using version 25.8.0, consider updating to the latest version of Aspose.Slides. Newer versions often include bug fixes and improvements that could resolve your issue.

  3. Use LoadOptions: When loading the presentation, specify the load format explicitly to ensure correct interpretation. Here’s an example:

    var loadOptions = new LoadOptions { LoadFormat = LoadFormat.Ppt };
    using var presentation = new Presentation(inputFilePath, loadOptions);
    presentation.Save(outputFilePath, SaveFormat.Pptx);
    
  4. Check for Unsupported Features: Review the content of your PPT file for complex elements (like certain animations, transitions, or embedded objects) that may not convert well to PPTX format.

  5. Error Handling: Implement error handling to catch any exceptions during the conversion process. This can provide more insight into what might be going wrong.

  6. Test with a Simple File: Try converting a simpler PPT file to see if the issue persists. This can help determine if the problem lies with the specific file or the conversion process itself.

Next Steps: If you continue to face issues after following these steps, please share more details about the specific content of the PPT file or any error messages you encounter.

Let me know if this helps!

@dunghnguyen,
Thank you for reporting the issue. I have reproduced the issue where the output file becomes corrupted during conversion from PPT to PPTX. We apologize for any inconvenience caused.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-45096

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

The issues you found earlier (filed as SLIDESNET-45096) have been resolved in Aspose.Slides for .NET 25.10 (ZIP, MSI, NuGet, Cross-platform).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.