Write the modified document to a stream, eg a FileStream or MemoryStream.
Namespace: TallComponents.PDFAssembly: TallComponents.PDF.Controls.WinForms (in TallComponents.PDF.Controls.WinForms.dll) Version: 2.0.46.0
Syntax
| C# |
|---|
public void Write( Stream stream, DocumentWriteMode writeMode, bool keepOpen ) |
| Visual Basic |
|---|
Public Sub Write ( _ stream As Stream, _ writeMode As DocumentWriteMode, _ keepOpen As Boolean _ ) |
Parameters
- stream
- Type: System.IO..::..Stream
Write the document to this stream.
- writeMode
- Type: TallComponents.PDF..::..DocumentWriteMode
The write mode to use.
- keepOpen
- Type: System..::..Boolean
Keep the document open after writing.
Remarks
For signing support you must be sure the stream is seekable. If the stream is writable only (eg Response.OutputStream) an exception will be raised. The stream is flushed before this method returns.
If keepOpen is false, you cannot write more than once on the same document instance. After calling Document.Write() information in this instance can be incorrect.