Click or drag to resize

PdfDocument SaveToStream Method (Stream, FileFormat)

Convert the document to an stream with the file format.

Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public void SaveToStream(
	Stream stream,
	FileFormat fileformat
)

Parameters

stream
Type: System.IO Stream
The stream with the file format.
fileformat
Type: Spire.Pdf FileFormat
The file format. FileFormat.SVG is not supported, because SVG file has no paging,so can't be saved to a stream.
See Also