Shrink text on overflow is not working in Aspose.Slides (C# .NET)

Hi Team,

I am generating report from template.pptx file by using Aspose.Slides 19.4 version. I am facing issue of text overflow into text box shape. I have selected Shrink text on overflow option for text box shape into template.pptx file. Same code is working properly in Aspose.Slides 18.9 version.
When i open generated report, i am facing issue of text overflow. But when i edit anything into text box shape, automatically effect of shrink text on overflow get affected. I have try to generate same issue in single slide into console application but unable to re-produce it. Can you suggest what could be issue?
I have attached snapshot for your reference.
Text_OverFlow_Issue.png (48.5 KB)

@siriussynoptek,

I have observed the issue shared by you and request you to please share the working sample project along with source presentation and generated presentation. I will be able to investigate the issue further on my end on provision of requested information.

Hi Team,

I have tried to re-produce same issue by creating sample console application but not able to replicate it into sample application. Here is code for same. I have also attached source presentation. Please suggest.
PresentationTemplate.zip (582.2 KB)

class Program
{
static void Main(string[] args)
{
try
{
Presentation MasterTemplate;
Presentation Pres;
ISlideCollection slds;
ISlide PrioritySlide;
string appDirectory = Environment.CurrentDirectory;

            MasterTemplate = new Presentation(appDirectory + "/PresentationTemplate/ServiceOverviewReport_Template.pptx");
            Pres = new Presentation(appDirectory + "/PresentationTemplate/ServiceOverviewReport_Layout.pptx");
            slds = Pres.Slides;

            string PriorityName = "DGP tuehesm ahagghgh and qsqcucnmh";
            //string TermNotes = "helps Account-asdfg marketers asdfedc the proper ayyroach and access the axwswwory ppppa and aspaxilitgts to deliver concrete, specific AAA aaaaaaa plans that target the right audience with the right message to drive desired results. Our approach is shaped by best practices and a deep reservoir of experience with ABC olagging and ecevtgtiod that enables our clients to have confidence in their jhsjhggdh thans.";
            string TermNotes = "Industry ABM account tactic review and selection\nIndustry ABM collaborating with sales\nIndustry ABM contact insights\nIndustry ABM for channel\nIndustry ABM grouped account-to-marketer ratio\nIndustry ABM measurement, refinement and expansion\nIndustry ABM pipeline acceleration\nIndustry ABM measurement, refinement and expansion\nIndustry ABM pipeline acceleration";

            Aspose.Slides.License slideLicense = new Aspose.Slides.License();
            slideLicense.SetLicense(appDirectory + "/PresentationTemplate/Aspose.Total.lic");

            slds.InsertClone(0, MasterTemplate.Slides[0]);
            PrioritySlide = Pres.Slides[0];
            IShape shape;
            shape = FindShape(PrioritySlide, "Description4");
            if (shape != null)
            {                    
                string str = ((IAutoShape)shape).TextFrame.Text;
                if (((IAutoShape)shape).TextFrame.Text != "")
                {
                    if (!string.IsNullOrEmpty(TermNotes))
                    {
                        str = str.Replace("<Description_4>", WebUtility.HtmlDecode(Regex.Replace(TermNotes, "<.*?>", String.Empty)));
                    }
                    else
                    {
                        str = str.Replace("<Description_4>", "");
                    }
                }
                   ((IAutoShape)shape).TextFrame.Text = str;
            }

            shape = FindShape(PrioritySlide, "PriorityTerm4");
            if (shape != null)
            {                   
                string str = ((IAutoShape)shape).TextFrame.Text;
                if (((IAutoShape)shape).TextFrame.Text != "")
                {
                    if (!string.IsNullOrEmpty(PriorityName))
                    {
                        str = str.Replace("<Priority_Term_4>", PriorityName);
                    }
                    else
                    {
                        str = str.Replace("<Priority_Term_4>", "");
                    }
                }
                   ((IAutoShape)shape).TextFrame.Text = str;
            }


            string ReportName = "Demo_Overview_Report.pptx";
            Pres.Save(appDirectory + "/PresentationDownloads/" + ReportName, Aspose.Slides.Export.SaveFormat.Pptx);
        }
        catch (Exception ex)
        {

        }
    }
    
    public static IShape FindShape(ISlide slide, String Name, List<string> shapeindex = null)
    {
        IShape selectedShape = null;
        for (int i = 0; i < slide.Shapes.Count; i++)
        {
            if (shapeindex != null)
            {
                if (shapeindex.Any(s => slide.Shapes[i].Name.Contains(s)))
                {
                    slide.Shapes[i].Hidden = false;

                }
                else if (slide.Shapes[i].Name != "Group 50" && slide.Shapes[i].Name != "Title" && slide.Shapes[i].Name != "Rectangle 44"
                        && slide.Shapes[i].Name != "TextBox 45" && slide.Shapes[i].Name != "Picture 52" && slide.Shapes[i].Name != "Picture 56" && slide.Shapes[i].Name != "Title 2")
                {
                    slide.Shapes[i].Hidden = true;
                }
            }

            if (slide.Shapes[i].Name.CompareTo(Name) == 0)
            {
                if (shapeindex == null)
                { return slide.Shapes[i]; }
                else
                { selectedShape = slide.Shapes[i]; }
            }
        }

        if (selectedShape != null)
        {
            return selectedShape;
        }
        return null;
    }
}

@siriussynoptek,

Thank you for sharing the information. I have worked with the sample project shared by you and have been able to reproduce the issue. An issue with ID SLIDESNET-41120 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with issue so that you may be notified once issue will be fixed.

Hi Team,

Have you further investigate this issue? When will this resolve? Please give us ETA.

Thanks.

@siriussynoptek,

I like to inform that this issue will be resolved in Aspose.Slides 19.6 which will be released soon. I request for your patience.

The issues you have found earlier (filed as SLIDESNET-41120) have been fixed in this update.

Hello Team,

I have updated Aspose slides version to latest Aspose.Slides version 19.6. Still issue is persist. Can you check whether it is resolved in this release or not. Please find attached screen shot for reference.
Text_Shrink_Issue.zip (201.2 KB)

Thanks.

@siriussynoptek,

I have worked with sample project previously shared using Aspose.Slides for .NET 19.6 and have also observed the information shared. I have been able to reproduce the issue. The issue SLIDESNET-41120 has been reopened so that we may further evaluate the issue on our end. We will share the good news with you as soon as it will be addressed.

Hi Team,

Is SLIDESNET-41120 issue resolved in latest version 19.7? Please confirm.

Thanks.

@siriussynoptek,

Can you please share your generated result presentation with us so that we may further investigate to help you out. We have checked with 19.6 version and didn’t see the problem.

Hi Team,

Please find attached file for generated result presentation.

Text_Shrink_Issue.zip (201.2 KB)

Thanks.

@siriussynoptek,

Thanks for sharing requested information. We will get back to you with good news soon.

Hi Team,

Is this resolved in latest version?

Thanks.

@siriussynoptek,

We have investigated the issue on our end. The result of Text_Shrink_Issue.zip code is presentation. But you shared only JPG image. Can you please share your resulting presentation.

Hi Team,

Please find attached generated result PPT.

Generated Presentation.zip (2.6 MB)

Thanks.

@siriussynoptek,

Thanks for sharing requested file with us. We will share good news with you soon.

Hello Team,

Is there any update and solve the issue for the same?

Thanks.

@siriussynoptek,

I have verified from our issue tracking system and request you to please try using latest Aspose.Slides for .NET 20.1 on your end and share if you still face the issue.