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