Class PresentationToHtmlConverter
- Namespace
- Slidize
- Assembly
- Slidize.Plugins.dll
Plugin for converting the PowerPoint 97-2003 and Microsoft Office Open XML presentations into HTML format.
public static class PresentationToHtmlConverter
- Inheritance
-
PresentationToHtmlConverter
- Inherited Members
Methods
Process(Stream, Stream)
Converts the input presentation to HTML format.
public static void Process(Stream inputStream, Stream outputStream)
Parameters
Examples
using FileStream inputStream = new("pres.pptx", FileMode.Open, FileAccess.Read);
using MemoryStream outputStream = new();
PresentationToHtmlConverter.Process(inputStream, outputStream);
Exceptions
Process(Stream, Stream, HtmlConverterOptions)
Converts the input presentation to HTML format with custom options.
public static void Process(Stream inputStream, Stream outputStream, HtmlConverterOptions options)
Parameters
inputStream
StreamThe input presentation stream.
outputStream
StreamThe output stream.
options
HtmlConverterOptionsHTML converter options.
Examples
PresentationToHtmlConverter.Process("pres.pptx", "pres.html", new HtmlConverterOptions{ JpegQuality = 100 });
Exceptions
Process(string, string)
Converts the input presentation to HTML format.
public static void Process(string inputFileName, string outputFileName)
Parameters
inputFileName
stringThe name of the input presentation file.
outputFileName
stringThe output file name.
Examples
PresentationToHtmlConverter.Process("pres.pptx", "pres.html");
Exceptions
Process(string, string, HtmlConverterOptions)
Converts the input presentation to HTML format with custom options.
public static void Process(string inputFileName, string outputFileName, HtmlConverterOptions options)
Parameters
inputFileName
stringThe name of the input presentation file.
outputFileName
stringThe output file name.
options
HtmlConverterOptionsHTML converter options.
Examples
PresentationToHtmlConverter.Process("pres.pptx", "pres.html", new HtmlConverterOptions{ JpegQuality = 100 });