PDFKit.NET 2.0 Class Library (.NET 2.0)

Document.Write Method (BinaryWriter, DocumentWriteMode)

Write the modified document to any writer.

public void Write(
   BinaryWriter binaryWriter,
   DocumentWriteMode writeMode
);

Parameters

binaryWriter
Write the document to this writer.
writeMode
The write mode to use.

Remarks

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

Note that you cannot write more than once on the same document instance. After calling Document.Write() information in this instance can be incorrect.

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.

See Also

Document Class | TallComponents.PDF Namespace | Document.Write Overload List