I am trying to convert a PowerPoint such that each slide of the PowerPoint becomes it’s own html file. But when I try to convert it through the code, each slide is included in each of the output files. I am using the latest version of Aspose (22.2.0.0)
This is the sample powerpoint:
video_and_some_text.zip (2.9 MB)
This is the output:
htmlOutPut.zip (2.1 MB)
As you can see the output has 2 html files but instead of having each contain the contents of the corresponding slides. Both files contain both slides.
And this is my code.
using (Presentation presentation = new Presentation(sourceFile))
{
ResponsiveHtmlController controller = new ResponsiveHtmlController();
HtmlOptions htmlOptions = new HtmlOptions { SvgResponsiveLayout = true};
for (int i = 0; i < presentation.Slides.Count; i++)
{
presentation.Save(destDir + @"\Slide" + (i + 1) + ".html", SaveFormat.Html5, htmlOptions);
//presentation.Save(destDir + @"\Slide" + (i + 1) + ".html", new[] { i + 1 }, SaveFormat.Html, htmlOptions);
}
}
We are looking to upgrade our current license, but before we do so, I need to sort out these details.
Thanks!
Chelsey