DRIT.Document

DRIT.Document

Pure-managed, cross-platform .NET document automation. Create, read, edit, convert, protect, sign, merge, and export Word-compatible documents without requiring Microsoft Word or Office Interop.

When DRIT.Document fits

Use it for template-driven correspondence, reports, mail merge, document review, form processing, document conversion, and services that must process office documents without interactive desktop automation.

Capabilities

  • Authoring: rich text, styles, sections, page setup, headers/footers, lists, tables, bookmarks, hyperlinks, footnotes, endnotes, and table of contents.
  • Review: comments, tracked revisions, accept/reject changes, fields, forms, and content controls.
  • Automation: mail merge with scalar fields, range blocks, nested collections, field callbacks, find/replace, regex replacement, charts, pictures, shapes, and watermarks.
  • Security: editing protection, AES-256 DOCX encryption, XAdES-BES signatures, and VBA module support.
  • Conversion: PDF and HTML export through the DRIT.Pdf and DRIT.Drawing ecosystem.

Format direction

FormatDirectionContext
DOCX / DOCM / ODT / HTMLRead / writeAuthoring and conversion
DOCRead / preservationLegacy binary compatibility
PDFWriteVia DRIT.Pdf

Platform and quick start

Targets net48 and netstandard2.0. The README lists Windows, Linux, and macOS support through the compatible target. Microsoft Word and Office Interop are not required.

dotnet add package DRIT.Document --version 26.9.1376

var doc = new Document();
var section = doc.AddSection();
section.AddParagraph("Generated document");
doc.Save("output.docx");

Choose your next step

Commercial product context: the public repository is an examples/documentation repository, not the product source or product license. DOC preservation and PDF export should be evaluated against the specific workflow.