Class HtmlWriter
Writes the mutable DocWright document model to HTML.
public sealed class HtmlWriter : IDocumentWriter
- Inheritance
-
HtmlWriter
- Implements
- Inherited Members
Remarks
The export is lossy by nature and its losses are enumerated in COMPAT.md rather than left to be discovered. HTML has no page, no section geometry, no header or footer, and no footnote; a Word document has all four. What HTML does have is emitted semantically, so the output re-imports into a document with the same structure even though it will not be the same document.
Output is deterministic: identical input and options produce identical bytes on every runtime, with no timestamps and no allocation-order-dependent identifiers. Output is UTF-8 without a byte-order mark.
Instances are stateless and safe for concurrent use; one write allocates one emitter.
Constructors
- HtmlWriter()
Initializes a writer with default options: a self-contained HTML document.
- HtmlWriter(HtmlWriteOptions)
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.