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

Free Support Forum - aspose.com

Slides.AddFromHtml does not work in Aspose.Slides.NET v19.1.0

I am running the following code. The presentation file created by using this code is a 0 by PPTX file with no slides.

I would expect a single slide presentation with HELLO WORLD written in it.

My end goal is to create a presentation with a far more complex slide in it, but with this very basic example not working correctly I need help before I can move forward.

    [TestMethod]
    public void Basic_HTML()
    {
        using (Presentation p = new Presentation())
        {
            string root = System.IO.Directory.GetCurrentDirectory();
            p.Slides.AddFromHtml("<html><body><h1>hello</h1></body></html>");
            p.Save($"{root}\\Samples\\basic_html.pptx", SaveFormat.Pptx);
        }
    }

@achesser,

I have observed the issue shared by you and an issue with ID SLIDESNET-40955 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

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