Convert
Convert class
Represents a group of methods intended to convert Presentation.
Convert
| Name | Description |
|---|---|
| Convert() |
Returns: Convert
autoByExtension
| Name | Description |
|---|---|
| autoByExtension (String, String) | Converts Presentation using the passed output path extension to determine the required export format. |
Parameters:
| Name | Type | Description |
|---|---|---|
| presPath | String | Path of the input presentation |
| outPath | String | Output path |
Returns: void
Exception
| Error | Condition |
|---|---|
| ArgumentOutOfRangeException | If unknown or unsupported format |
toJpeg
| Name | Description |
|---|---|
| toJpeg (Presentation, String) | 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 |
|---|---|---|
| pres | Presentation | The input presentation. |
| outputFileName | String | The output file name. |
Returns: void
Exception
| Error | Condition |
|---|---|
| null | ArgumentException |
toJpeg
| Name | Description |
|---|---|
| toJpeg (Presentation, String, Dimension) | 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 |
|---|---|---|
| pres | Presentation | The input presentation |
| outputFileName | String | The output file name. |
| imageSize | Dimension | The size of each generated image. |
Returns: void
Exception
| Error | Condition |
|---|---|
| null | ArgumentException |
toJpeg
| Name | Description |
|---|---|
| toJpeg (Presentation, String, float, RenderingOptions) | 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 |
|---|---|---|
| pres | Presentation | The input presentation. |
| outputFileName | String | The output file name. |
| scale | float | The scaling factor applied to the output images relative to the original slide size. |
| options | RenderingOptions | The rendering options. |
Returns: void
Exception
| Error | Condition |
|---|---|
| null | ArgumentException |
toPdf
| Name | Description |
|---|---|
| toPdf (String, String) | Converts Presentation to PDF. |
Parameters:
| Name | Type | Description |
|---|---|---|
| presPath | String | Path of the input presentation |
| outPath | String | Output path |
Returns: void
toPdf
| Name | Description |
|---|---|
| toPdf (String, String, PdfOptions) | Converts Presentation to PDF. |
Parameters:
| Name | Type | Description |
|---|---|---|
| presPath | String | Path of the input presentation |
| outPath | String | Output path |
| options | PdfOptions | Output PDF options |
Returns: void
toPdf
| Name | Description |
|---|---|
| toPdf (Presentation, String) | Converts Presentation to PDF. |
Parameters:
| Name | Type | Description |
|---|---|---|
| pres | Presentation | Input presentation |
| outPath | String | Output path |
Returns: void
toPdf
| Name | Description |
|---|---|
| toPdf (Presentation, String, PdfOptions) | Converts Presentation to PDF. |
Parameters:
| Name | Type | Description |
|---|---|---|
| pres | Presentation | Input presentation |
| outPath | String | Output path |
| options | PdfOptions | Output PDF options |
Returns: void
toPng
| Name | Description |
|---|---|
| toPng (Presentation, String) | 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 |
|---|---|---|
| pres | Presentation | The input presentation. |
| outputFileName | String | The output file name. |
Returns: void
Exception
| Error | Condition |
|---|---|
| null | ArgumentException |
toPng
| Name | Description |
|---|---|
| toPng (Presentation, String, Dimension) | 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 |
|---|---|---|
| pres | Presentation | The input presentation |
| outputFileName | String | The output file name. |
| imageSize | Dimension | The size of each generated image. |
Returns: void
Exception
| Error | Condition |
|---|---|
| null | ArgumentException |
toPng
| Name | Description |
|---|---|
| toPng (Presentation, String, float, RenderingOptions) | 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 |
|---|---|---|
| pres | Presentation | The input presentation. |
| outputFileName | String | The output file name. |
| scale | float | The scaling factor applied to the output images relative to the original slide size. |
| options | RenderingOptions | The rendering options. |
Returns: void
Exception
| Error | Condition |
|---|---|
| null | ArgumentException |
toSvg
| Name | Description |
|---|---|
| toSvg (String) | Converts Presentation to SVG. |
Parameters:
| Name | Type | Description |
|---|---|---|
| presPath | String | Path of the input presentation |
Returns: void
toSvg
| Name | Description |
|---|---|
| toSvg (String, Convert.GetOutPathCallback) | Converts Presentation to SVG. |
Parameters:
| Name | Type | Description |
|---|---|---|
| presPath | String | Path of the input presentation |
| getOutPath | Convert.GetOutPathCallback | Callback that returns the SVG output path for each slide in the presentation |
Returns: void
toSvg
| Name | Description |
|---|---|
| toSvg (Presentation, Convert.GetOutPathCallback) | Converts Presentation to SVG. |
Parameters:
| Name | Type | Description |
|---|---|---|
| pres | Presentation | Input presentation |
| getOutPath | Convert.GetOutPathCallback | Callback that returns the SVG output path for each slide in the presentation |
Returns: void
toSvg
| Name | Description |
|---|---|
| toSvg (Presentation, SVGOptions) | Converts Presentation to SVG. |
Parameters:
| Name | Type | Description |
|---|---|---|
| pres | Presentation | Input presentation |
| options | SVGOptions | SVG export options |
Returns: void
toSvg
| Name | Description |
|---|---|
| toSvg (Presentation, Convert.GetOutPathCallback, SVGOptions) | Converts Presentation to SVG. |
Parameters:
| Name | Type | Description |
|---|---|---|
| pres | Presentation | Input presentation |
| getOutPath | Convert.GetOutPathCallback | Callback that returns the SVG output path for each slide in the presentation |
| options | SVGOptions | SVG export options |
Returns: void
toTiff
| Name | Description |
|---|---|
| toTiff (Presentation, String) | Converts the input presentation to a set of TIFF format images. If the output file name is given as “myPath/myFilename.tiff”, the result will be saved as a set of “myPath/myFilename_N.tiff” files, where N is a slide number. |
Parameters:
| Name | Type | Description |
|---|---|---|
| pres | Presentation | The input presentation. |
| outputFileName | String | The output file name. |
Returns: void
Exception
| Error | Condition |
|---|---|
| null | ArgumentException |
toTiff
| Name | Description |
|---|---|
| toTiff (Presentation, String, TiffOptions, boolean) | Converts the input presentation to TIFF format with custom options. If the output file name is given as “myPath/myFilename.tiff” and multipage is false, the result will be saved as a set of “myPath/myFilename_N.tiff” files, where N is a slide number. Otherwise, if multipage is true, the result will be a multi-page “myPath/myFilename.tiff” document. |
Parameters:
| Name | Type | Description |
|---|---|---|
| pres | Presentation | The input presentation. |
| outputFileName | String | The output file name. |
| options | TiffOptions | The TIFF saving options. |
| multipage | boolean | Specifies whether the generated TIFF document should be a multi-page. |
Returns: void
Exception
| Error | Condition |
|---|---|
| null | ArgumentException |