Table of Contents

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 Stream

The input presentation stream.

outputStream Stream

The output stream.

convertFormat ConvertFormat

The 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

ArgumentException

/

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 string

The name of the input presentation file.

outputFileName string

The name of the output presentation file.

Examples

PresentationConverter.Process("pres.pptx", "pres.ppt");

Exceptions

ArgumentException

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 string

The name of the input presentation file.

outputFileName string

The name of the output presentation file.

convertFormat ConvertFormat

The format to which the presentation should be converted.

Examples

PresentationConverter.Process("pres.pptx", "pres.ppt", ConvertFormat.Ppt);

Exceptions

ArgumentException