Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Jun 22:20
· 2 commits to main since this release

v0.2.0

rtf-writer: rich RTF authoring model

A new strongly-typed, immutable document model for generating arbitrarily
complex RTF, alongside the existing minimal StyledDocument round-trip path:

  • RtfDocument + RtfDocumentWriter (writeRtfDocument)
  • Fonts and colors referenced by value; the writer builds the font/color
    tables and resolves the \fN / \cfN indices
  • Paragraph layout: alignment, spacing, first-line/left indents,
    keep-with-next, bottom borders
  • Inline content: styled runs (bold/italic/underline/strike/super/sub,
    font, size, color), line breaks, tabs, hyperlinks (external URL and
    in-document bookmark), bookmarks
  • Page breaks; {\info} metadata and {*\generator}
  • 7-bit ASCII output (\uN escapes); round-trips through the reader

Additive and backward-compatible: rtf-core and the StyledDocument / RtfWriter
path are unchanged. See docs/WRITING-RICH-RTF.md.