Table of Contents

Method Read

Namespace
DocWright.Formats.Rtf
Assembly
DocWright.Formats.Rtf.dll

Read(Stream, DocumentReadOptions, IConversionDiagnostics)

Reads a document from the stream.

public IDocWrightDocument Read(Stream input, DocumentReadOptions options, IConversionDiagnostics diagnostics)

Parameters

input Stream

The stream to read. Read forward-only; large parts are streamed, never buffered whole.

options DocumentReadOptions

The read options.

diagnostics IConversionDiagnostics

The diagnostics sink.

Returns

IDocWrightDocument

The materialized document.

Exceptions

ArgumentNullException

A required argument is null.

InvalidDocumentException

The stream does not begin with an RTF signature.

ResourceLimitExceededException

A configured limit was exceeded.