Table of Contents

PresentationToPngConverter class

Plugin for converting the PowerPoint 97-2003 and Microsoft Office Open XML presentations into a set of PNG images.

process(inputPath: string): Promise

Converts the input presentation to a set of PNG 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.png" files, where N is a slide number.

Parameters:

Name Type Description
inputPath String The name of the input presentation file.

Example

await slidize.PresentationToPngConverter.process("presentation.pptx");

process(inputPath: string, outputPath: string): Promise

Converts the input presentation to a set of PNG format images. If the output file name is given as "myPath/myFilename.png", the result will be saved as a set of "myPath/myFilename_N.png" files, where N is a slide number.

Parameters:

Name Type Description
inputPath String The name of the input presentation file.
outputPath String The output file name.

Example

await slidize.PresentationToPngConverter.process("presentation.pptx", "slide.png");

process(inputPath: string, outputPath: string, options: ImageConverterOptions): Promise

Converts the input presentation to a set of PNG format images with custom options. If the output file name is given as "myPath/myFilename.png", the result will be saved as a set of "myPath/myFilename_N.png" files, where N is a slide number.

Parameters:

Name Type Description
inputPath String The name of the input presentation file.
outputPath String The output file name.
options ImageConverterOptions Image converter options.

Example

const options = new slidize.ImageConverterOptions();
options.setImageScale(1.5);
await slidize.PresentationToPngConverter.process("presentation.pptx", "slide.png", options);