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.
Install
dotnet add package DocumentFormat.OpenXml --version 2.7.2
Install-Package DocumentFormat.OpenXml -Version 2.7.2
<PackageReference Include="DocumentFormat.OpenXml" Version="2.7.2" />
Frameworks
Dependencies
Adoption guide
Teams that need maximum format control, deterministic output and deep document customization.
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.