IPresentationSave Method (String, Int32, SaveFormat)

Saves specified slides of a presentation to a file with the specified format.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
void Save(
	string fname,
	int[] slides,
	SaveFormat format
)

Parameters

fname
Type: SystemString
Path to the created file.
slides
Type: SystemInt32
Array with slide positions, starting from 1.
format
Type: Aspose.Slides.ExportSaveFormat
Format of the exported data.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen stream or slides parameter is null.
ArgumentOutOfRangeExceptionWhen slides parameter contains wrong page numbers.
InvalidOperationExceptionWhen an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP.
See Also