Getting the Number of Lines of a Paragraph from a PowerPoint Presentation in C#

Hi,

In a powerpoint slide if we continue to enter text beyond the length of text line it proceeds to next line without a linebreak.
Is there a way to detect a multi line paragraph and the number of lines in it ?
The paragraph might contain text/equations …

Regards,
Raman

@sraman,
Thank you for posting the question.

To make sure I understand your requirements correctly, could you please share a sample presentation containing text examples and a description of the expected result?

Attaching a self explanatory presenation abcd.zip (57.5 KB)

@sraman,
Thank you for the sample presentation. Unfortunately, I was unable to find such a feature in Aspose.Slides you requested.

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

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.

The issues you found earlier (filed as SLIDESNET-44020) have been fixed in Aspose.Slides for .NET 23.10 (ZIP, MSI).
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.

@sraman,
With Aspose.Slides for .NET 23.10, you can get the number of lines in a paragraph like this:

var lineCount = paragraph.GetLinesCount();

Andrey,
Glad to know.
Does this cover paragraphs containing non text shapes like equaitions etc.

Regards,
Raman

@sraman

We will need to test this as well. Do you need to get the lines even when paragraphs contain non text shapes? You can test with your sample file and share that with us as well in case API does not produce expected results. We will further proceed to investigate accordingly.