to_jpeg method

to_jpeg

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.

@staticmethod
def to_jpeg(pres, output_file_name):
    ...
ParameterTypeDescription
presPresentationThe input presentation.
output_file_namestrThe output file name.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentException))

to_jpeg

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.

@staticmethod
def to_jpeg(pres, output_file_name, image_size):
    ...
ParameterTypeDescription
presPresentationThe input presentation
output_file_namestrThe output file name.
image_sizeaspose.pydrawing.SizeThe size of each generated image.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentException))

to_jpeg

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.

@staticmethod
def to_jpeg(pres, output_file_name, scale, options):
    ...
ParameterTypeDescription
presPresentationThe input presentation.
output_file_namestrThe output file name.
scalefloatThe scaling factor applied to the output images relative to the original slide size.
optionsIRenderingOptionsThe rendering options.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentException))

See Also