![]() |
VOOZH | about |
dotnet add package OfficeIMO.Word --version 1.0.67
NuGet\Install-Package OfficeIMO.Word -Version 1.0.67
<PackageReference Include="OfficeIMO.Word" Version="1.0.67" />
<PackageVersion Include="OfficeIMO.Word" Version="1.0.67" />Directory.Packages.props
<PackageReference Include="OfficeIMO.Word" />Project file
paket add OfficeIMO.Word --version 1.0.67
#r "nuget: OfficeIMO.Word, 1.0.67"
#:package OfficeIMO.Word@1.0.67
#addin nuget:?package=OfficeIMO.Word&version=1.0.67Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Word&version=1.0.67Install as a Cake Tool
👁 nuget version
👁 nuget downloads
OfficeIMO.Word is the main Word document package in the OfficeIMO family. It creates, edits, inspects, and saves .docx files without COM automation and without Microsoft Office installed.
If OfficeIMO saves you time, please consider supporting the work through GitHub Sponsors or PayPal. PowerShell users should use PSWriteOffice for the PowerShell-facing experience.
dotnet add package OfficeIMO.Word
using OfficeIMO.Word;
using var document = WordDocument.Create("report.docx");
document.AddParagraph("Quarterly report").Style = WordParagraphStyles.Heading1;
document.AddParagraph("Created with OfficeIMO.Word.");
var table = document.AddTable(2, 2, WordTableStyle.TableGrid);
table.Rows[0].Cells[0].Paragraphs[0].Text = "Area";
table.Rows[0].Cells[1].Paragraphs[0].Text = "Status";
table.Rows[1].Cells[0].Paragraphs[0].Text = "Documents";
table.Rows[1].Cells[1].Paragraphs[0].Text = "Generated";
table.RepeatHeaderRowAtTheTopOfEachPage = true;
table.Style = WordTableStyle.TableGrid;
document.Save();
.docx documents.OfficeIMO.Drawing for shared color and image metadata support.The quick start shows the smallest useful document. These examples show the kinds of document work that belong in OfficeIMO.Word itself.
var paragraph = document.AddParagraph("Status: ");
paragraph.AddText("Approved").Bold = true;
paragraph.AddText(" on ");
paragraph.AddText(DateTime.Today.ToString("yyyy-MM-dd")).Italic = true;
var table = document.AddTable(3, 3);
table.Rows[0].Cells[0].Paragraphs[0].Text = "Area";
table.Rows[0].Cells[1].Paragraphs[0].Text = "Owner";
table.Rows[0].Cells[2].Paragraphs[0].Text = "Status";
table.RepeatHeaderRowAtTheTopOfEachPage = true;
table.Style = WordTableStyle.TableGrid;
table.Rows[1].Cells[0].Paragraphs[0].Text = "Documents";
table.Rows[1].Cells[1].Paragraphs[0].Text = "Operations";
table.Rows[1].Cells[2].Paragraphs[0].Text = "Ready";
table.MergeCells(rowIndex: 2, columnIndex: 0, rowSpan: 1, colSpan: 3);
table.Rows[2].Cells[0].Paragraphs[0].Text = "Generated by OfficeIMO.Word";
document.HeaderDefaultOrCreate.AddParagraph("Internal report");
document.FooterDefaultOrCreate.AddParagraph()
.AddText("Page ")
.AddPageNumber();
var paragraph = document.AddParagraph();
paragraph.AddImage("logo.png", width: 160, height: 64);
document.AddParagraph("Jump target").AddBookmark("target-section");
document.AddParagraph()
.AddHyperLink("Open project site", new Uri("https://github.com/EvotecIT/OfficeIMO"));
document.AddParagraph()
.AddHyperLink("Jump inside document", "target-section", addStyle: true);
document.AddParagraph("Chapter 1").Style = WordParagraphStyles.Heading1;
document.AddParagraph("Section 1.1").Style = WordParagraphStyles.Heading2;
document.Paragraphs[0].AddField(WordFieldType.TOC);
var merge = document.AddParagraph();
merge.AddText("Customer: ");
merge.AddField(new WordFieldBuilder(WordFieldType.MergeField)
.AddInstruction("CustomerName"));
var totalField = new WordFieldBuilder(WordFieldType.MergeField)
.AddInstruction("OrderTotal")
.SetFormat(WordFieldFormat.Numeric);
merge.AddField(totalField);
document.FillContentControlValues(new Dictionary<string, object?> {
["Name"] = "Ada Lovelace",
["Approved"] = true,
["DueDate"] = DateTime.Today
});
Dictionary<string, object?> values = document.ExtractContentControlValues();
document.ValidateContentControlValues(values).EnsureValid();
using DocumentFormat.OpenXml.Wordprocessing;
document.Settings.ProtectionPassword = "owner-password";
document.Settings.ProtectionType = DocumentProtectionValues.ReadOnly;
using OfficeIMO.Word.Html;
using OfficeIMO.Word.Markdown;
using OfficeIMO.Word.Pdf;
string html = document.ToHtml(new WordToHtmlOptions { IncludeDefaultCss = true });
string markdown = document.ToMarkdown(new WordToMarkdownOptions());
document.SaveAsPdf("report.pdf");
OfficeIMO.Word owns the Word model. Conversion and export packages stay separate so consumers only take the dependencies they need:
| Package | Use it for |
|---|---|
| Word to/from HTML conversion. | |
| Word to/from Markdown conversion. | |
Word to PDF export through OfficeIMO.Pdf. |
|
| Planning and exporting Word content to Google Docs. |
Docs/.OfficeIMO.Word.Pdf and OfficeIMO.Pdf.netstandard2.0, net8.0, net10.0; net472 is included when building on Windows.Runnable samples live under .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 is compatible. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on OfficeIMO.Word:
| Package | Downloads |
|---|---|
|
OfficeIMO.Word.Markdown
Markdown converter for OfficeIMO.Word - Convert Word documents to/from Markdown using OfficeIMO.Markdown |
|
|
OfficeIMO.Word.Html
HTML converter for OfficeIMO.Word - Convert Word documents to/from HTML using AngleSharp |
|
|
OfficeIMO.Reader
Unified, read-only document extraction facade for OfficeIMO (Word/Excel/PowerPoint/Markdown/PDF) intended for AI ingestion. |
|
|
OfficeIMO.Word.Pdf
PDF converter for OfficeIMO.Word - Export Word documents to PDF using the first-party OfficeIMO.Pdf engine. |
|
|
OfficeIMO.Word.GoogleDocs
Google Docs planning and export scaffolding for OfficeIMO.Word. |
Showing the top 1 popular GitHub repositories that depend on OfficeIMO.Word:
| Repository | Stars |
|---|---|
|
EvotecIT/PSWriteOffice
PowerShell Module to create and edit Microsoft Word, Microsoft Excel, and Microsoft PowerPoint documents without having Microsoft Office installed.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.67 | 358 | 6/16/2026 |
| 1.0.66 | 414 | 6/16/2026 |
| 1.0.65 | 617 | 6/15/2026 |
| 1.0.64 | 814 | 6/13/2026 |
| 1.0.63 | 690 | 6/12/2026 |
| 1.0.62 | 693 | 6/9/2026 |
| 1.0.61 | 202 | 6/9/2026 |
| 1.0.60 | 824 | 6/5/2026 |
| 1.0.59 | 2,250 | 5/27/2026 |
| 1.0.58 | 639 | 5/26/2026 |
| 1.0.57 | 548 | 5/26/2026 |
| 1.0.56 | 728 | 5/23/2026 |
| 1.0.55 | 592 | 5/22/2026 |
| 1.0.54 | 558 | 5/21/2026 |
| 1.0.53 | 553 | 5/21/2026 |
| 1.0.52 | 670 | 5/20/2026 |
| 1.0.51 | 565 | 5/19/2026 |
| 1.0.50 | 654 | 5/18/2026 |
| 1.0.49 | 831 | 5/16/2026 |
| 1.0.48 | 546 | 5/14/2026 |