Write the modified document to any writer.

Namespace: TallComponents.PDF
Assembly: TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 3.0.69.1

Syntax

C#
public void Write(
	BinaryWriter binaryWriter,
	DocumentWriteMode writeMode,
	bool keepOpen
)
Visual Basic
Public Sub Write ( _
	binaryWriter As BinaryWriter, _
	writeMode As DocumentWriteMode, _
	keepOpen As Boolean _
)

Parameters

binaryWriter
Type: System.IO..::..BinaryWriter
Write the document to this writer.
writeMode
Type: TallComponents.PDF..::..DocumentWriteMode
The write mode to use.
keepOpen
Type: System..::..Boolean
Keep the document open after writing.

Remarks

Note that this allows you to write the document to a file, HTTP response or memory with full control.

For signing support you must be sure the underlaying output stream is seekable. If the stream is writable only (eg Response.OutputStream) an exception will be raised.

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