Skip to main content
DocumentFormat.OpenXml package icon

DocumentFormat.OpenXml

The Open XML SDK provides open-source libraries for working with Open XML Documents (DOCX, XLSX, and PPTX). It supports scenarios such as: - High-performance generation of word-processing documents, spreadsheets, and presentations. - Populating content in DOCX files from an XML data source. - Splitting up (shredding) a DOCX or PPTX file into multiple files, and combining multiple DOCX / PPTX files into a single file. - High fidelity conversion of DOCX => HTML/CSS and HTML/CSS => DOCX. - Extraction of data from XLSX. - Searching and replacing content in DOCX / PPTX using regular expressions. - Updating cached data and embedded spreadsheets for charts in DOCX / PPTX. - Document modification, such as removing tracked revisions or removing unacceptable content from documents.

Total Downloads
418.0M
418,017,611
Published
Jun 7, 2017
Latest stable version

Install

.NET CLI
dotnet add package DocumentFormat.OpenXml --version 2.7.2
Package Manager Console
Install-Package DocumentFormat.OpenXml -Version 2.7.2
PackageReference
<PackageReference Include="DocumentFormat.OpenXml" Version="2.7.2" />

Frameworks

.NETFramework3.5 .NETFramework4.0 .NETFramework4.6 .NETStandard1.3

Dependencies

System.IO.Packaging
.NETFramework4.6
[4.0.0, )
NETStandard.Library
.NETStandard1.3
[1.6.1, )
System.IO.Packaging
.NETStandard1.3
[4.0.0, )

Adoption guide

Teams that need maximum format control, deterministic output and deep document customization.

Office guide
Why it appears in the guide: Official Open XML SDK for direct manipulation of Office Open XML document structures. Trade-off: Low-level APIs are powerful but require detailed understanding of Open XML structure.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.