Using aspose.slides-14.9.0, I try to convert the attached ppt to html with the simple code,
static void convertPowerPointToHtml(String name, byte[] bytes) throws IOException {
//Instantiate a Presentation object that represents a presentation file
Presentation pres = new Presentation(new ByteArrayInputStream(bytes));
HtmlOptions htmlOpt = new HtmlOptions();
htmlOpt.setHtmlFormatter(com.aspose.slides.HtmlFormatter.createDocumentFormatter("",false));
//Saving the presentation to HTML
String docName = outputDirectory + “\” + name + “-fromppt.html”;
pres.save(docName, com.aspose.slides.SaveFormat.Html, htmlOpt);
}
The resultant html loses the overlay annotations (in red color in the attached ppt). Also, some pages (e.g, pages 4 & 5) loses body content. I’m not able to figure out what the various HtmlOptions settings are. Can you suggest some settings to use to maximize fidelity in the resultant html?
Thanks,
An