saveAsPresentation method

This method saves the presentation with a new name or format.

Defined in

Presentation

Syntax

public void saveAsPresentation(String fileName, String fileFormat) throws SymphonyException

Parameters

String FileName

Specifies the new name of the presentation to be saved and must contain the file path. For example, on Microsoft® Windows® , the format is D:\\test.odp . On Linux®, the format is /home/me/test.odp.

String fileFormat

Specifies the format of the presentation to be saved. The following file formats are available:
  • .odp file: Constant.SYMPHONY_FILE_FORMAT_ODP
  • .otp file: Constant.SYMPHONY_FILE_FORMAT_OTP
  • .ppt file: Constant.SYMPHONY_FILE_FORMAT_PPT

Usage

If the file path does not exist, this method throws an exception.

If the file format is not supported, this method throws an exception.

If the file already exists and the document is in visible mode, prompt asks if the existing file should be overwritten.

If the file already exists and the document is in invisible mode, this method overwrite the existing file.

See examples

Example: saveAsPresentation method

Related information

File format constant