Table of Contents

Class RtfWriter

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

Writes the DocWright document model as Rich Text Format.

public sealed class RtfWriter : IDocumentWriter
Inheritance
RtfWriter
Implements
Inherited Members

Remarks

The output is deterministic: byte-identical across runs and across the four target frameworks for the same input. There are no timestamps, no generated identifiers and no hash-ordered tables — the font and colour tables are ordered by first appearance in document order.

RTF cannot carry everything the DOM holds, and what it cannot carry is enumerated in COMPAT.md rather than discovered. Anything dropped is reported through IConversionDiagnostics.

Constructors

RtfWriter()

Initializes a writer with default options.

RtfWriter(RtfWriteOptions)

Initializes a writer with format-specific options.

Properties

Format

Gets the format this writer produces.

Methods

Write(IDocWrightDocument, Stream, DocumentWriteOptions, IConversionDiagnostics)

Writes the document to the stream.