Line Shape Loses Its Text Box Property After Resaving a PPT File in C#

I have resaved a *.ppt presentation with Aspose.Slides and the result document have a few inconsistencies.

The most affected slides:

  • 1: no Text Options tab on the line shape (Format Shape) in MS PowerPoint.

I tried to convert the presentation to *.pptx format as well, and the result is the same.
I attached the document and a screenshot with line settings before and after conversion.

Code sample:

var pr = new Presentation(inPath);
pr.Save(outPath, SaveFormat.Ppt);

I use Aspose.Slides.dll 25.3.0.0 and Microsoft® PowerPoint® for Microsoft 365 MSO (Version 2501 Build 16.0.18429.20132) 64-bit.
test40.zip (70.7 KB)

@licenses

It seems that after resaving your PowerPoint presentation using Aspose.Slides, the line shape is missing its text box property, which is causing inconsistencies when viewed in Microsoft PowerPoint. This issue can occur due to how Aspose.Slides handles certain shape properties during the conversion process.

To troubleshoot this issue, you can check if the line shape is being treated as a text box in your code. You can iterate through the shapes in your presentation and verify if the line shape is recognized as a text box. Here’s a code snippet that demonstrates how to check if a shape is a text box:

using System;
using Aspose.Slides;
using Aspose.Slides.Export;

class CheckTextShapes
{
    public static void Run()
    {
        string presentationPath = "path_to_your_presentation.pptx";

        using (Presentation presentation = new Presentation(presentationPath))
        {
            foreach (IShape shape in presentation.Slides[0].Shapes)
            {
                if (shape is AutoShape autoShape)
                {
                    Console.WriteLine(autoShape.IsTextBox ? "Shape is a text box" : "Shape is not a text box");
                }
            }
        }
    }
}

Make sure to replace "path_to_your_presentation.pptx" with the actual path to your presentation file. This code will help you identify whether the line shape is being recognized as a text box after the conversion.

If the issue persists, consider updating to the latest version of Aspose.Slides, as there may have been fixes or improvements related to shape handling in newer releases. Additionally, you might want to check the Aspose.Slides documentation or forums for any known issues regarding line shapes and text properties.

If you continue to experience problems, please provide more details or share the specific presentation file for further assistance.

@licenses,
Thank you for reporting on the issue. I’ve reproduced the problem with missing the Text Options tab when saving the PowerPoint presentation in PPT/PPTX formats.

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-44891

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.