Table of Contents

Class PresentationToPdfConverter

Namespace
Slidize
Assembly
Slidize.Plugins.dll

Plugin for converting the PowerPoint 97-2003 and Microsoft Office Open XML presentations into PDF format.

public static class PresentationToPdfConverter
Inheritance
PresentationToPdfConverter
Inherited Members

Methods

Process(Stream, Stream)

Converts the input presentation to PDF format.

public static void Process(Stream inputStream, Stream outputStream)

Parameters

inputStream Stream

The input presentation stream.

outputStream Stream

The output stream.

Examples

using FileStream inputStream = new("pres.pptx", FileMode.Open, FileAccess.Read);
using MemoryStream outputStream = new();
PresentationToPdfConverter.Process(inputStream, outputStream);

Exceptions

ArgumentException

Process(Stream, Stream, PdfConverterOptions)

Converts the input presentation to PDF format with custom options.

public static void Process(Stream inputStream, Stream outputStream, PdfConverterOptions options)

Parameters

inputStream Stream

The input presentation stream.

outputStream Stream

The output stream.

options PdfConverterOptions

PDF converter options.

Examples

PresentationToPdfConverter.Process("pres.pptx", "pres.pdf", new PdfConverterOptions{ ComplianceLevel = PdfComplianceLevel.PdfUa });

Exceptions

ArgumentException

Process(string, string)

Converts the input presentation to PDF format.

public static void Process(string inputFileName, string outputFileName)

Parameters

inputFileName string

The name of the input presentation file.

outputFileName string

The output file name.

Examples

PresentationToPdfConverter.Process("pres.pptx", "pres.pdf");

Exceptions

ArgumentException

Process(string, string, PdfConverterOptions)

Converts the input presentation to PDF format with custom options.

public static void Process(string inputFileName, string outputFileName, PdfConverterOptions options)

Parameters

inputFileName string

The name of the input presentation file.

outputFileName string

The output file name.

options PdfConverterOptions

PDF converter options.

Examples

PresentationToPdfConverter.Process("pres.pptx", "pres.pdf", new PdfConverterOptions{ ComplianceLevel = PdfComplianceLevel.PdfUa });

Exceptions

ArgumentException