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
Examples
using FileStream inputStream = new("pres.pptx", FileMode.Open, FileAccess.Read);
using MemoryStream outputStream = new();
PresentationToPdfConverter.Process(inputStream, outputStream);
Exceptions
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
StreamThe input presentation stream.
outputStream
StreamThe output stream.
options
PdfConverterOptionsPDF converter options.
Examples
PresentationToPdfConverter.Process("pres.pptx", "pres.pdf", new PdfConverterOptions{ ComplianceLevel = PdfComplianceLevel.PdfUa });
Exceptions
Process(string, string)
Converts the input presentation to PDF format.
public static void Process(string inputFileName, string outputFileName)
Parameters
inputFileName
stringThe name of the input presentation file.
outputFileName
stringThe output file name.
Examples
PresentationToPdfConverter.Process("pres.pptx", "pres.pdf");
Exceptions
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
stringThe name of the input presentation file.
outputFileName
stringThe output file name.
options
PdfConverterOptionsPDF converter options.
Examples
PresentationToPdfConverter.Process("pres.pptx", "pres.pdf", new PdfConverterOptions{ ComplianceLevel = PdfComplianceLevel.PdfUa });