Saves the document into a HTTP response stream.
Namespace: Spire.PdfAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
Syntax
| C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("This method may be removed in the future.")] public void Save( string fileName, HttpResponse response, HttpReadType type )
<ObsoleteAttribute("This method may be removed in the future.")> Public Sub Save ( fileName As String, response As HttpResponse, type As HttpReadType )
public: [ObsoleteAttribute(L"This method may be removed in the future.")] void Save( String^ fileName, HttpResponse^ response, HttpReadType type )
[<ObsoleteAttribute("This method may be removed in the future.")>] 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.