aspose-free-consulting / projects

The starting point for Aspose free consulting projects
5 stars 5 forks source link

Aspose presentation numbered bullet format issue #399

Open sfgny opened 3 weeks ago

sfgny commented 3 weeks ago

Hi,

I am using aspose slides to generate a PDF document in asp.net MVC. The system has a rich text input which stored as an html string then it can be generated into pdf.

This is a sample input: numberedbullet-html

I am using the following function to render the html input.

ITextFrame textFrame; textFrame.Paragraphs.AddFromHtml(@htmlText);

However, there is a problem in rendering the numbered bullet. It is being formatted based on the very first text format. The problem is the Bold and Italicize,

numberedbullet

Removing the styles in portion text seems to work in removing the bullet format. But this is not the solution since we needed to retain the actual style that is entered in the rich text editor.

foreach (var portionText in paragraph.Portions) { portionText.PortionFormat.FontItalic = NullableBool.False; portionText.PortionFormat.FontBold = NullableBool.False; }

What I needed is to make the numbered bullet in plain format, just like in the html rendering. Is there any solution for this? Thanks in advance.

andreypotapovaspose commented 3 weeks ago

@sfgny, We are sorry that you had to encounter this problem. We need more details to investigate the case and help you. Please share the following files and information:

sfgny commented 3 weeks ago

Hi, thank you for looking into this. For your reference.

Input HTML string: <p></p><ol><li>Normal text - correct bullet format</li><li><b>Bold text</b> - wrong bullet format</li><li><u>Underline text</u> - correct bullet format</li><li><i>Italicize text</i> -&nbsp; wrong bullet format</li><li><b><i><u>Bold underline italicize text</u></i></b> -&nbsp; wrong bullet format</li></ol><p></p>

Aspose.Slides version: Aspose.Slides Version 17.5.0.0 Runtime version v4.0.30319

Output presentation file: Sample-Generated-PDF.pdf

andreypotapovaspose commented 3 weeks ago

@sfgny, Thank you for the details. I am working on the issue and will get back to you soon.

andreypotapovaspose commented 3 weeks ago

@sfgny, Thank you for your patience. I reproduced the problem you described. 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-44541

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.