OpenXmlPowerTools.NetFramework
0.0.2
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
dotnet add package OpenXmlPowerTools.NetFramework --version 0.0.2
NuGet\Install-Package OpenXmlPowerTools.NetFramework -Version 0.0.2
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="OpenXmlPowerTools.NetFramework" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenXmlPowerTools.NetFramework" Version="0.0.2" />
<PackageReference Include="OpenXmlPowerTools.NetFramework" />
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 OpenXmlPowerTools.NetFramework --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OpenXmlPowerTools.NetFramework, 0.0.2"
#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 OpenXmlPowerTools.NetFramework@0.0.2
#: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=OpenXmlPowerTools.NetFramework&version=0.0.2
#tool nuget:?package=OpenXmlPowerTools.NetFramework&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OpenXmlPowerTools
Fork of https://github.com/Codeuctivity/OpenXmlPowerTools with .net framework 4.8 compatibility
Known missing features - Conversion of DOCX to HTML/CSS
Example - Convert DOCX to HTML
var sourceDocxFileContent = File.ReadAllBytes("./source.docx");
using var memoryStream = new MemoryStream();
await memoryStream.WriteAsync(sourceDocxFileContent, 0, sourceDocxFileContent.Length);
using var wordProcessingDocument = WordprocessingDocument.Open(memoryStream, true);
var settings = new WmlToHtmlConverterSettings("htmlPageTitle");
var html = WmlToHtmlConverter.ConvertToHtml(wordProcessingDocument, settings);
var htmlString = html.ToString(SaveOptions.DisableFormatting);
File.WriteAllText("./target.html", htmlString, Encoding.UTF8);
Other features
- Splitting DOCX/PPTX files into multiple files.
- Combining multiple DOCX files into a single file.
- Populating content in template DOCX files with data from XML.
- Conversion of HTML/CSS to DOCX.
- Searching and replacing content in DOCX/PPTX using regular expressions.
- Managing tracked-revisions, including detecting tracked revisions, and accepting tracked revisions.
- Updating Charts in DOCX/PPTX files, including updating cached data, as well as the embedded XLSX.
- Retrieving metrics from DOCX files, including the hierarchy of styles used, the languages used, and the fonts used.
- Writing XLSX files using far simpler code than directly writing the markup, including a streaming approach that enables writing XLSX files with millions of rows.
- Extracting data (along with formatting) from spreadsheets.
Development
- Run
dotnet build OpenXmlPowerTools.sln
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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 Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- DocumentFormat.OpenXml (>= 3.0.2)
- SixLabors.Fonts (>= 1.0.1)
- SixLabors.ImageSharp (>= 2.1.10)
- System.IO.Compression (>= 4.3.0)
- System.IO.Packaging (>= 9.0.1)
-
net8.0
- DocumentFormat.OpenXml (>= 3.0.2)
- SixLabors.Fonts (>= 1.0.1)
- SixLabors.ImageSharp (>= 2.1.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.