Hi,
we started using export to html5 and we are facing some issues. We saw that the Html5Options object is missing properties we have on HtmlOptions such as NotesCommentsLayouting which allowed us to specify whether we want Notes/Comments to be included in the output Html. When using export to html5, notes are missing from the output file.
The code:
using (Presentation presentation = new Presentation(pptxInputFilePath))
{
HtmlOptions options = new HtmlOptions
{
HtmlFormatter = HtmlFormatter.CreateDocumentFormatter("", false),
NotesCommentsLayouting =
{
NotesPosition = includeNotes ? NotesPositions.BottomTruncated : NotesPositions.None,
}
};
presentation.Save($"{folderName}\\{fileName}_svg.html", SaveFormat.Html, options);
presentation.Save($"{folderName}\\{fileName}_html5.html", SaveFormat.Html5, new Html5Options
{
AnimateShapes = false,
AnimateTransitions = false
});
}
The version we are using is Aspose.Slides.NET.22.4.0.
See attached the input pptx and the output files in both save formats. Thank you!
PptxOutputFiles.zip (22.4 KB)
input_notes.zip (29.0 KB)