DocumentSave Method (Stream, SaveFormat)

Saves the document with a new name along with a file format.

Namespace:  Aspose.Pdf
Assembly:  Aspose.PDF (in Aspose.PDF.dll) Version: 22.1.0
Syntax
public void Save(
	Stream outputStream,
	SaveFormat format
)

Parameters

outputStream
Type: System.IOStream
Stream where the document will be stored.
format
Type: Aspose.PdfSaveFormat
Format options.
Exceptions
ExceptionCondition
ArgumentExceptionArgumentException when HtmlSaveOptions is passed to a method. Save a document to the html stream is not supported. Please use method save to the file.
See Also