DocumentSave Method (Stream, SaveOptions)
Saves the document to a stream with a save options.

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntax
public void Save(
	Stream outputStream,
	SaveOptions options
)

Parameters

outputStream
Type: System.IOStream
Stream where the document will be stored.
options
Type: Aspose.PdfSaveOptions
Save 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