Table of Contents

Class OdtWriter

Namespace
DocWright.Formats.Odt
Assembly
DocWright.Formats.Odt.dll

Writes the DocWright document model as an OpenDocument text document (.odt).

public sealed class OdtWriter : IDocumentWriter
Inheritance
OdtWriter
Implements
Inherited Members

Remarks

Styles are mapped, not flattened. Word's named styles become ODF named styles and direct formatting becomes ODF automatic styles, which is the structure the format was designed around. Resolving every style chain and writing the result onto each paragraph would produce a document that looks right and cannot be edited — changing a heading style in the consuming application would change nothing, because no paragraph would claim to be a heading.

Export only. There is no ODT reader: importing ODF well is a format package of the same size as this one rather than a corollary of it. The losses are enumerated in COMPAT.md rather than discovered.

Output is deterministic — byte-identical across runs for the same input and settings. There are no timestamps anywhere, including in the ZIP container, whose entry times are pinned to the MS-DOS epoch; no generated identifiers; and no document statistics, because every one of those would make two writes of one document differ.

Instances are stateless and safe for concurrent use; one write allocates one set of emitters.

Constructors

OdtWriter()

Initializes a writer with default settings.

OdtWriter(OdtWriteSettings)

Initializes a writer with format-specific settings.

Properties

Format

Gets the format this writer produces.

Methods

Write(IDocWrightDocument, Stream, DocumentWriteOptions, IConversionDiagnostics)

Writes the document to the stream.