Class PresentationConverter
- Namespace
- Slidize
- Assembly
- Slidize.Plugins.dll
Plugin for converting the PowerPoint 97-2003 and Microsoft Office Open XML presentations into various presentation formats.
public static class PresentationConverter
- Inheritance
-
PresentationConverter
- Inherited Members
Methods
Process(Stream, Stream, ConvertFormat)
Converts the input presentation to the specified format.
public static void Process(Stream inputStream, Stream outputStream, ConvertFormat convertFormat)
Parameters
inputStream
StreamThe input presentation stream.
outputStream
StreamThe output stream.
convertFormat
ConvertFormatThe format to which the presentation should be converted.
Examples
using FileStream inputStream = new("pres.pptx", FileMode.Open, FileAccess.Read);
using MemoryStream outputStream = new();
PresentationConverter.Process(inputStream, outputStream, ConvertFormat.Odp);
Exceptions
Process(string, string)
Converts the input presentation using the output file extension to determine the required convert format.
public static void Process(string inputFileName, string outputFileName)
Parameters
inputFileName
stringThe name of the input presentation file.
outputFileName
stringThe name of the output presentation file.
Examples
PresentationConverter.Process("pres.pptx", "pres.ppt");
Exceptions
Process(string, string, ConvertFormat)
Converts the input presentation to a file with the specified format.
public static void Process(string inputFileName, string outputFileName, ConvertFormat convertFormat)
Parameters
inputFileName
stringThe name of the input presentation file.
outputFileName
stringThe name of the output presentation file.
convertFormat
ConvertFormatThe format to which the presentation should be converted.
Examples
PresentationConverter.Process("pres.pptx", "pres.ppt", ConvertFormat.Ppt);