Class PresentationToJpegConverter
- Namespace
- Slidize
- Assembly
- Slidize.Plugins.dll
Plugin for converting the PowerPoint 97-2003 and Microsoft Office Open XML presentations into a set of JPEG images.
public static class PresentationToJpegConverter
- Inheritance
-
PresentationToJpegConverter
- Inherited Members
Methods
Process(string)
Converts the input presentation to a set of JPEG format images and saves them in the folder of the input presentation. If the input file name is given as "myPath/myFilename.pptx", the result will be saved as a set of "myPath/myFilename_N.jpg" files, where N is a slide number.
public static void Process(string inputFileName)
Parameters
inputFileName
stringThe name of the input presentation file.
Examples
PresentationToJpegConverter.Process("pres.pptx");
Exceptions
Process(string, string)
Converts the input presentation to a set of JPEG format images.
If the output file name is given as "myPath/myFilename.jpg",
the result will be saved as a set of "myPath/myFilename_N.jpg" files, where N is a slide number.
public static void Process(string inputFileName, string outputFileName)
Parameters
inputFileName
stringThe name of the input presentation file.
outputFileName
stringThe output file name.
Examples
PresentationToJpegConverter.Process("pres.pptx", "pres.jpg");
Exceptions
Process(string, string, ImageConverterOptions)
Converts the input presentation to a set of PNG format images with custom options. If the output file name is given as "myPath/myFilename.jpg", the result will be saved as a set of "myPath/myFilename_N.jpg" files, where N is a slide number.
public static void Process(string inputFileName, string outputFileName, ImageConverterOptions options)
Parameters
inputFileName
stringThe name of the input presentation file.
outputFileName
stringThe output file name.
options
ImageConverterOptionsImage converter options.
Examples
[C#]
ImageConverterOptions options = new ImageConverterOptions
{
ImageScale = 2f
};
PresentationToJpegConverter.Process("pres.pptx", "pres.jpg", options);