Saves the document into a HTTP response stream.

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 void Save(
	string fileName,
	HttpResponse response,
	HttpReadType type
)
Public Sub Save ( 
	fileName As String,
	response As HttpResponse,
	type As HttpReadType
)
public:
void Save(
	String^ fileName, 
	HttpResponse^ response, 
	HttpReadType type
)
member Save : 
        fileName : string * 
        response : HttpResponse * 
        type : HttpReadType -> unit 

Parameters

fileName
String
The name of the document.
response
HttpResponse
The HTTP response stream object.
type
HttpReadType
The type of the reading document.

Remarks

If a document containing digital signature needs to be saved then the destination stream must support seeking, otherwise an exception will be raised. Since the HTTP response stream does not support seeking please write the document to a memory stream first and then flush it to the destination stream to avoid raising an exception.

See Also