PresentationSave Method (String, Int32, SaveFormat)
Saves specified slides of a presentation to a file with the specified format with page number keeping.

Namespace: Aspose.Slides
Assembly: Aspose.Slides (in Aspose.Slides.dll) Version: 20.2.0.0 (20.2)
Syntax
public 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.

Implements

IPresentationSave(String, Int32, SaveFormat)
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