OfficeIMO 3.6.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package OfficeIMO --version 3.6.0
                    
NuGet\Install-Package OfficeIMO -Version 3.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO" Version="3.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO" Version="3.6.0" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO --version 3.6.0
                    
#r "nuget: OfficeIMO, 3.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO@3.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO&version=3.6.0
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO&version=3.6.0
                    
Install as a Cake Tool

OfficeIMO

nuget version

OfficeIMO is the one-reference package for documents in .NET: Word, Excel, PowerPoint, PDF and Markdown, the conversions between them, OfficeConverter for files and folders, and the document reader for search and AI ingestion. It runs without Microsoft Office.

dotnet add package OfficeIMO

Targets netstandard2.0, net8.0 and net10.0, plus net472 on Windows, so .NET Framework applications get the same conversion routes. To keep a dependency small, reference the individual format packages instead.

Create documents and save them as PDF

using OfficeIMO;
using OfficeIMO.Excel;
using OfficeIMO.Excel.Pdf;
using OfficeIMO.Word;
using OfficeIMO.Word.Pdf;

Sale[] sales = [new("North", 182_400m), new("South", 141_900m), new("West", 97_300m)];

using (var report = WordDocument.Create("Sales.docx")) {
    report.AddHeading("Quarterly sales", level: 1);
    report.AddTable(sales);
    report.AddChart(OfficeChartType.Column, sales, nameof(Sale.Region), nameof(Sale.Revenue));
    report.Save();
    report.SaveAsPdf("Sales.pdf");
}

using (var book = ExcelDocument.Create("Sales.xlsx", new ExcelCreateOptions { Theme = OfficeTheme.Modern })) {
    book.AddSheet("Sales").AddTable(sales);
    book.Save();
    book.SaveAsPdf("Sales-workbook.pdf");
}

record Sale(string Region, decimal Revenue);

Convert files

OfficeConverter.Convert picks the route from the file extensions and returns an OfficeConversionReport:

using OfficeIMO;

OfficeConversionReport report = OfficeConverter.Convert("Sales.docx", "Sales.md",
    new OfficeConversionOptions { FileConflictPolicy = OfficePublicationPolicy.Replace, FailOnLoss = false });
foreach (OfficeDiagnostic diagnostic in report.Diagnostics) {
    Console.WriteLine($"{diagnostic.Severity} {diagnostic.Code}: {diagnostic.Message}");
}

By default an existing output is not replaced; FileConflictPolicy changes that. FailOnLoss = true stops a conversion before it writes anything the target cannot carry. OfficeConversionOptions.WordSave, ExcelSave and PowerPointSave set native save options, such as passwords, on the output.

Convert a folder

using OfficeIMO;

OfficeBatchReport batch = await OfficeConverter.ConvertAsync(
    Directory.EnumerateFiles("Reports", "*.docx"),
    outputDirectory: "Pdf",
    target: OfficeDocumentFormat.Pdf,
    new OfficeBatchOptions { MaxParallelism = 4, ResumeFrom = "Pdf/.officeimo-batch.json" });

Console.WriteLine($"{batch.Summary.Completed} converted, {batch.Summary.Reused} already done, {batch.Summary.Failed} failed");
foreach (OfficeBatchItemReport item in batch.Items) {
    Console.WriteLine($"{item.Status} {item.InputPath} -> {item.OutputPath}");
}

With ResumeFrom, a rerun reuses verified outputs from the checkpoint and converts only what is missing; RetryFailed retries recorded failures. The checkpoint format and saved options are the same on every framework.

Convert in memory

To{Format}() returns the target document model; the async form returns the model and its report together:

using OfficeIMO;
using OfficeIMO.Markdown;
using OfficeIMO.Word;
using OfficeIMO.Word.Markdown;

using MarkdownDocument source = MarkdownDocument.Parse("# Quarterly review\n\n- Revenue up 12%\n- Two open risks");
OfficeConversionResult<WordDocument> converted = await source.ToWordAsync();
using WordDocument word = converted.Value;
converted.Report.ThrowIfLoss();
word.Save("Review.docx");

Inspect any document

using OfficeIMO;

OfficeDocumentInfo info = OfficeDocument.Inspect("Review.docx", new OfficeInspectOptions { IncludeContent = false });
Console.WriteLine(info.Source);

OfficeIMO.Workflows and OfficeIMO.Workflows.IWork add further routes, such as Apple iWork files, through RegisterConversions().

See the repository README for the package map and the migration guide when upgrading.

Generated capability summary

This table is generated from the package-neutral OfficeIMO operation catalog. The detailed source contracts remain authoritative for feature-level behavior and limitations.

Operation Supported Partial Preserved Rejected Unsupported Not applicable
Convert 0 27 0 0 0 0

The complete rows for OfficeIMO are published in the generated operation contract.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OfficeIMO:

Package Downloads
OfficeIMO.Workflows

Typed local document workflows that compose first-party OfficeIMO conversion, PDF, and provenance capabilities.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.6.1 70 11/10/2026
3.6.0 139 11/6/2026