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
inputStreamStreamThe input presentation stream.
outputStreamStreamThe output stream.
convertFormatConvertFormatThe 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
inputFileNamestringThe name of the input presentation file.
outputFileNamestringThe 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
inputFileNamestringThe name of the input presentation file.
outputFileNamestringThe name of the output presentation file.
convertFormatConvertFormatThe format to which the presentation should be converted.
Examples
PresentationConverter.Process("pres.pptx", "pres.ppt", ConvertFormat.Ppt);