Incorrect Bullet Character Detected in a PowerPoint Presentation in Python

I have attached a pptx file “bullet_issue.pptx” having one shape in the first slide. The shape text has bullet points enabled.
I have attached the screenshot of slide content as file “slide_screenshot.png” to show how the bullet points appear as square bullet point when opened in microsoft powerpoint.
However, when I open this pptx file using aspose and try to extract the bullet char value using code below, aspose returns a totally different char value.

presentation.slides[0].shapes[0].text_frame.paragraphs[0].paragraph_format.bullet.get_effective().char

output: ‘§’

we can see here that this is not the correct value. can you please help us understand why aspose is returning incorrect char value?
Bullet character.zip (636.3 KB)

@Prezent_Inc

The issue you’re experiencing with the bullet character being returned as ‘§’ instead of the expected bullet point may be related to how the bullet format is being accessed in your code. When you use the GetEffective() method, it retrieves the effective bullet format, which may not always reflect the actual character used in the presentation, especially if the bullet character is defined differently in the theme or style settings.

To resolve this, you should directly access the bullet format without calling GetEffective(). This way, you can retrieve the bullet character that is specifically set for that paragraph. Here’s an example of how you can modify your code:

// Assuming you have already loaded your presentation
var paragraphFormat = presentation.slides[0].shapes[0].text_frame.paragraphs[0].paragraph_format;
var bulletChar = paragraphFormat.bullet.char; // Access the bullet character directly
Console.WriteLine(bulletChar);

By accessing the bullet character directly from the paragraph format, you should get the correct bullet character as defined in your PowerPoint file. If the issue persists, it may be worth checking the bullet settings in your PowerPoint file to ensure they are correctly defined.

If you continue to face issues, consider checking for any updates or patches for Aspose.Slides, as there may be improvements or fixes related to bullet formatting in newer versions.

For more detailed information on managing bullet and numbered lists, you can refer to the Aspose documentation on this topic here which provides comprehensive guidance on handling bullet formats in presentations.

If you have any further questions or need additional assistance, feel free to ask!

@Prezent_Inc,
I need some time to check the issue. I will get back to you as soon as possible.

@Prezent_Inc,
Thank you for your patience. I’ve reproduced the issue with extracting the bullet character.

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): SLIDESPYNET-266

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.