Skip to content

dotnet-campus/DocumentFormat.OpenXml.Extensions

Repository files navigation

DocumentFormat.OpenXml.Extensions

中文 | English

The OpenXML SDK extensions. Including libraries and tools.

Build

Tools

dotnetCampus.OfficeDocumentZipper

A dotnet tool to assist in editing Office document files

Usage

dotnet tool update -g dotnetCampus.OfficeDocumentZipper

OfficeDocumentZipper

Feature

  • Unzip pptx docx xlsx file
  • Zip directory to pptx docx xlsx file
  • Convert OpenXML unit

Libraries

Name NuGet
dotnetCampus.OpenXMLUnitConverter
dotnetCampus.OpenXMLUnitConverter.Source
dotnetCampus.DocumentFormat.OpenXml.Flatten
dotnetCampus.DocumentFormat.OpenXml.Flatten.Source

dotnetCampus.OpenXMLUnitConverter

Defining units for OpenXml properties and the unit conversion function.

Install

DLL Pakcage:

<PackageReference Include="dotnetCampus.OpenXmlUnitConverter" Version="1.9.0" />

SouceYard Package:

<PackageReference Include="dotnetCampus.OpenXmlUnitConverter.Source" Version="1.9.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>

Usage

The sample:

void Foo(DocumentFormat.OpenXml.Drawing.Point2DType point)
{
    var x = new Emu(point.X);
    var pixelValue = x.ToPixel();
    var cmValue = x.ToCm();
}

DocumentFormat.OpenXml.Flatten

Install

DLL Pakcage:

<PackageReference Include="dotnetCampus.DocumentFormat.OpenXml.Flatten" Version="2.0.0" />

SouceYard Package:

<PackageReference Include="dotnetCampus.DocumentFormat.OpenXml.Flatten.Source" Version="2.0.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>

Usage

See DocumentFormat.OpenXml.Flatten README.md and the Demo.

Thanks

Contributing

PRs Welcome

If you would like to contribute, feel free to create a Pull Request, or give us Bug Report.

License