We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text Effect and Styles Are Not Applied to Text in PPT to HTML Conversion

Hello Aspose Team,

We are using “Aspose.Slides.Net Core” version 22.7.0 in our application and found some issue related to the Text Effect and Styles while converting it to the Html. I am attaching sample documents here. Can you please help to fix this issues.

PPT to Html Text Issue Sample Files.zip (1.0 MB)

@rajesh.domadia,
Thank you for reporting the issue.

Please share the following:

  • code example you used
  • OS version on which the code was executed

Code:

var presentation = new Presentation(presentationMemorySream);
var htmlOpt = new HtmlOptions();
htmlOpt.HtmlFormatter = HtmlFormatter.CreateCustomFormatter(new CustomFormattingController());

foreach (var slide in presentation.Slides)
{
    var slidePosition = presentation.Slides.IndexOf(slide) + 1;
    var slidePositionList = new int[] { slidePosition };

    using (var htmlMemoryStream = new MemoryStream())
    {
        presentation.Save(htmlMemoryStream, slidePositionList, SaveFormat.Html, htmlOpt);
        slides.Add(new { id = "slide" + slidePosition, html = StreamToString(htmlMemoryStream), comments, notes = notes?.NotesTextFrame?.Text });
    }
}

The OS Edition is Windows 10 Enterprise, Version: 22H2, Build: 19045.2364

@rajesh.domadia,
Thank you for the information. I’ve reproduced the problem with the text effects and styles when converting the presentation slides to HTML documents and added a ticket with ID SLIDESNET-43725 to our issue-tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when a new release of Aspose.Slides with a fix is published.

After that, you will be able also quickly to check your results with Online Slides Converter.