PresentationToJpegConverter class
Plugin for converting the PowerPoint 97-2003 and Microsoft Office Open XML presentations into a set of JPEG images.
process(inputPath: string): Promise
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.jpeg" files, where N is a slide number.
Parameters:
| Name | Type | Description |
|---|---|---|
| inputPath | String | The name of the input presentation file. |
Example
await slidize.PresentationToJpegConverter.process("presentation.pptx");
process(inputPath: string, outputPath: string): Promise
Converts the input presentation to a set of JPEG format images. If the output file name is given as "myPath/myFilename.jpeg", the result will be saved as a set of "myPath/myFilename_N.jpeg" 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.PresentationToJpegConverter.process("presentation.pptx", "slide.jpg");
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.jpeg", the result will be saved as a set of "myPath/myFilename_N.jpeg" 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.PresentationToJpegConverter.process("presentation.pptx", "slide.jpg", options);