.NET library for Word documents
Word documents in .NET, rendered like Word
Convert DOCX and DOC to PDF and images, edit and generate documents, run mail merges, compare versions and run SSRS reports, all in managed code with no Office installed.
10+formats in and out
4target frameworks, net48 to net10.0
0Office or native dependencies
using DocWright;
var converter = new DocWrightConverter();
using var input = File.OpenRead("contract.docx");
using var output = File.Create("contract.pdf");
var result = converter.Convert(input, output);
Console.WriteLine($"Wrote {result.PageCount} pages");
What you can build
One converter class for the common path, with add-on packages you install only when you need them.
Convert to PDFDOCX, DOC, RTF, HTML, Markdown and text to PDF, including PDF/A-2b and tagged PDF.
Edit documentsFind and replace, fill
{{placeholders}} from JSON, bookmarks, fields, forms and content controls.
Mail mergeMerge fields and repeating regions from objects, JSON, DataTables or your own data reader.
Compose from codeA fluent API for headings, tables, lists, images and page numbers.
Compare versionsDiff two documents into tracked changes, then review and resolve them.
Page imagesRender Word pages or existing PDFs to PNG and JPEG thumbnails.
Assemble PDFsMerge, split, delete and reorder pages of existing PDF files.
SSRS reportsLoad .rdl, run it against your data, then export to PDF, Excel, Word or HTML.
SecurityEncrypted documents, digital signatures, and limits that make hostile input safe to open.