Convert

Convert class

Represents a group of methods intended to convert Presentation.

Convert

NameDescription
Convert()

Returns: Convert


autoByExtension

NameDescription
autoByExtension (String, String)Converts Presentation using the passed output path extension to determine the required export format.

Parameters:

NameTypeDescription
presPathStringPath of the input presentation
outPathStringOutput path

Returns: void

Exception

ErrorCondition
ArgumentOutOfRangeExceptionIf unknown or unsupported format

toJpeg

NameDescription
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:

NameTypeDescription
presPresentationThe input presentation.
outputFileNameStringThe output file name.

Returns: void

Exception

ErrorCondition
nullArgumentException

toJpeg

NameDescription
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:

NameTypeDescription
presPresentationThe input presentation
outputFileNameStringThe output file name.
imageSizeDimensionThe size of each generated image.

Returns: void

Exception

ErrorCondition
nullArgumentException

toJpeg

NameDescription
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:

NameTypeDescription
presPresentationThe input presentation.
outputFileNameStringThe output file name.
scalefloatThe scaling factor applied to the output images relative to the original slide size.
optionsRenderingOptionsThe rendering options.

Returns: void

Exception

ErrorCondition
nullArgumentException

toPdf

NameDescription
toPdf (String, String)Converts Presentation to PDF.

Parameters:

NameTypeDescription
presPathStringPath of the input presentation
outPathStringOutput path

Returns: void


toPdf

NameDescription
toPdf (String, String, PdfOptions)Converts Presentation to PDF.

Parameters:

NameTypeDescription
presPathStringPath of the input presentation
outPathStringOutput path
optionsPdfOptionsOutput PDF options

Returns: void


toPdf

NameDescription
toPdf (Presentation, String)Converts Presentation to PDF.

Parameters:

NameTypeDescription
presPresentationInput presentation
outPathStringOutput path

Returns: void


toPdf

NameDescription
toPdf (Presentation, String, PdfOptions)Converts Presentation to PDF.

Parameters:

NameTypeDescription
presPresentationInput presentation
outPathStringOutput path
optionsPdfOptionsOutput PDF options

Returns: void


toPng

NameDescription
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:

NameTypeDescription
presPresentationThe input presentation.
outputFileNameStringThe output file name.

Returns: void

Exception

ErrorCondition
nullArgumentException

toPng

NameDescription
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:

NameTypeDescription
presPresentationThe input presentation
outputFileNameStringThe output file name.
imageSizeDimensionThe size of each generated image.

Returns: void

Exception

ErrorCondition
nullArgumentException

toPng

NameDescription
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:

NameTypeDescription
presPresentationThe input presentation.
outputFileNameStringThe output file name.
scalefloatThe scaling factor applied to the output images relative to the original slide size.
optionsRenderingOptionsThe rendering options.

Returns: void

Exception

ErrorCondition
nullArgumentException

toSvg

NameDescription
toSvg (String)Converts Presentation to SVG.

Parameters:

NameTypeDescription
presPathStringPath of the input presentation

Returns: void


toSvg

NameDescription
toSvg (String, Convert.GetOutPathCallback)Converts Presentation to SVG.

Parameters:

NameTypeDescription
presPathStringPath of the input presentation
getOutPathConvert.GetOutPathCallbackCallback that returns the SVG output path for each slide in the presentation

Returns: void


toSvg

NameDescription
toSvg (Presentation, Convert.GetOutPathCallback)Converts Presentation to SVG.

Parameters:

NameTypeDescription
presPresentationInput presentation
getOutPathConvert.GetOutPathCallbackCallback that returns the SVG output path for each slide in the presentation

Returns: void


toSvg

NameDescription
toSvg (Presentation, SVGOptions)Converts Presentation to SVG.

Parameters:

NameTypeDescription
presPresentationInput presentation
optionsSVGOptionsSVG export options

Returns: void


toSvg

NameDescription
toSvg (Presentation, Convert.GetOutPathCallback, SVGOptions)Converts Presentation to SVG.

Parameters:

NameTypeDescription
presPresentationInput presentation
getOutPathConvert.GetOutPathCallbackCallback that returns the SVG output path for each slide in the presentation
optionsSVGOptionsSVG export options

Returns: void


toTiff

NameDescription
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:

NameTypeDescription
presPresentationThe input presentation.
outputFileNameStringThe output file name.

Returns: void

Exception

ErrorCondition
nullArgumentException

toTiff

NameDescription
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:

NameTypeDescription
presPresentationThe input presentation.
outputFileNameStringThe output file name.
optionsTiffOptionsThe TIFF saving options.
multipagebooleanSpecifies whether the generated TIFF document should be a multi-page.

Returns: void

Exception

ErrorCondition
nullArgumentException