Convert the document to streams with the file format.

Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public Stream[] SaveToStream(
	int startIndex,
	int endIndex,
	FileFormat fileformat
)
Public Function SaveToStream ( 
	startIndex As Integer,
	endIndex As Integer,
	fileformat As FileFormat
) As Stream()
public:
array<Stream^>^ SaveToStream(
	int startIndex, 
	int endIndex, 
	FileFormat fileformat
)
member SaveToStream : 
        startIndex : int * 
        endIndex : int * 
        fileformat : FileFormat -> Stream[] 

Parameters

startIndex
Int32
The start index.
endIndex
Int32
The end index.
fileformat
FileFormat
The file format.

Return Value

array<Stream>[]()[][]
The format file streams. FileFormat.PDF:return only one stream(PDF support paging). FileFormat.XPS:return only one stream(XPS support paging). FileFormat.DOC:return only one stream(DOC support paging). FileFormat.DOCX:return only one stream(DOCX support paging). FileFormat.XLSX:return only one stream(XLSX support paging). FileFormat.PCL:return only one stream(PCL support paging). FileFormat.POSTSCRIPT:return only one stream(POSTSCRIPT support paging). FileFormat.HTML:return only one stream(HTML support paging). FileFormat.SVG:return multiple streams(SVG not support paging,one stream to one page).

See Also