Method Read
Read(Stream, DocumentReadOptions, IConversionDiagnostics)
Reads a document from the stream.
public IDocWrightDocument Read(Stream input, DocumentReadOptions options, IConversionDiagnostics diagnostics)
Parameters
inputStreamThe stream to read. Read forward-only; large parts are streamed, never buffered whole.
optionsDocumentReadOptionsThe read options.
diagnosticsIConversionDiagnosticsThe 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.