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

Error

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.

Error

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.

Error

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.

Error

ErrorCondition
nullArgumentException

toPdf

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

Parameters:

NameTypeDescription
presPathStringPath of the input presentation
outPathStringOutput path

toPdf

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

Parameters:

NameTypeDescription
presPathStringPath of the input presentation
outPathStringOutput path
optionsPdfOptionsOutput PDF options

toPdf

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

Parameters:

NameTypeDescription
presPresentationInput presentation
outPathStringOutput path

toPdf

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

Parameters:

NameTypeDescription
presPresentationInput presentation
outPathStringOutput path
optionsPdfOptionsOutput PDF options

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.

Error

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.

Error

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.

Error

ErrorCondition
nullArgumentException

toSvg

NameDescription
toSvg (String)Converts Presentation to SVG.

Parameters:

NameTypeDescription
presPathStringPath of the input presentation

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

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

toSvg

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

Parameters:

NameTypeDescription
presPresentationInput presentation
optionsSVGOptionsSVG export options

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

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.

Error

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.

Error

ErrorCondition
nullArgumentException