Convert the specified range of the document pages to the format file which saved to streams.

Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)

Syntax

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

Parameters

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

Return Value

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

See Also