IPresentationSave Method (Stream, Int32, SaveFormat)

Saves specified slides of a presentation to a stream in the specified format.

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

Parameters

stream
Type: System.IOStream
Output stream.
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