Shrike
Shrike

Reputation: 9500

Library for converting PPTX presentations to HTML

I'm looking for a .NET-library which allows me to convert PPTX-presentations (MS PowerPoint) to HTML. It should support animations and keep fidelity of original presentations. Which ones would you recommend?

My goal is to stream pptx-presentations to several participants as html. It's kind of conferencing app like MS Lync in PP sharing mode.

p.s. I'm aware of Aspose. It can export ppt to SVG but not pptx.

Upvotes: 3

Views: 3691

Answers (2)

Aleksey Malov
Aleksey Malov

Reputation: 26

I believe the author has already found a solution, but perhaps my answer will be useful for anyone else with a similar issue. One can use iSpring Platform (http://www.ispringsolutions.com/ispring-platform) to deal with this task. This is a COM SDK that allows programs using .NET to convert PowerPoint presentations into HTML5 and Flash. It also supports all the animations, effects, and all the ppt capabilities. All the published presentations can be managed by Javascript, so it’s possible to use them in online conferencing apps.

Upvotes: 0

Anthony Graglia
Anthony Graglia

Reputation: 5435

This is a late answer and it still doesnt answer all because of the lacking animation support but Aspose does support PPTX to HTML and SVG.

http://www.aspose.com/docs/display/slidesnet/Converting+PPTX+to+HTML

PresentationEx pres = new PresentationEx(docStream);
string css = "html,body{padding:0;margin:0;}";
css += ".slide{border:1px solid #ddd;}";

SlideImageFormat slideImageFormat = SlideImageFormat.Svg(new SVGOptions());
HtmlFormatter htmlFormatter = HtmlFormatter.CreateDocumentFormatter(css, false);
HtmlOptions opts = new HtmlOptions {
  SlideImageFormat = slideImageFormat,
  HtmlFormatter = htmlFormatter
};

pres.Save(Response.OutputStream, SaveFormat.Html, opts);

Additionally, you could add JavaScript to load animations afterwards based on id or some custom engine.

Upvotes: 1

Related Questions