DocumentWrite Method (Stream, DocumentWriteMode, Boolean)

Write the modified document to a stream, eg a FileStream or MemoryStream.

Namespace:  TallComponents.PDF
Assembly:  TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 4.0.101.0
Syntax
public void Write(
	Stream stream,
	DocumentWriteMode writeMode,
	bool keepOpen
)
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.

See Also