|
1 | | -# dotnetCampus.OfficeDocumentZipper |
| 1 | +# DocumentFormat.OpenXml.Extensions |
2 | 2 |
|
3 | | -| Build | NuGet | |
4 | | -|--|--| |
5 | | -||[](https://www.nuget.org/packages/dotnetCampus.OfficeDocumentZipper)| |
| 3 | +[中文](README.zh-cn.md) | [English](README.md) |
| 4 | + |
| 5 | +The OpenXML SDK extensions. Including libraries and tools. |
| 6 | + |
| 7 | +| Build | |
| 8 | +|--| |
| 9 | +|| |
| 10 | + |
| 11 | +# Tools |
| 12 | + |
| 13 | +## dotnetCampus.OfficeDocumentZipper |
6 | 14 |
|
7 | 15 | A dotnet tool to assist in editing Office document files |
8 | 16 |
|
9 | | -# Usage |
| 17 | +### Usage |
10 | 18 |
|
11 | 19 | ``` |
12 | 20 | dotnet tool update -g dotnetCampus.OfficeDocumentZipper |
13 | 21 |
|
14 | 22 | OfficeDocumentZipper |
15 | 23 | ``` |
16 | 24 |
|
17 | | -# Feature |
| 25 | +### Feature |
18 | 26 |
|
19 | 27 | - Unzip pptx docx xlsx file |
20 | 28 | - Zip directory to pptx docx xlsx file |
21 | 29 | - Convert OpenXML unit |
22 | 30 |
|
23 | 31 |  |
| 32 | + |
| 33 | +# Libraries |
| 34 | + |
| 35 | +| Name | NuGet| |
| 36 | +|--|--| |
| 37 | +|dotnetCampus.OpenXMLUnitConverter|[](https://www.nuget.org/packages/dotnetCampus.OpenXMLUnitConverter)| |
| 38 | +|dotnetCampus.OpenXMLUnitConverter.Source|[](https://www.nuget.org/packages/dotnetCampus.OpenXMLUnitConverter.Source)| |
| 39 | + |
| 40 | + |
| 41 | +## dotnetCampus.OpenXMLUnitConverter |
| 42 | + |
| 43 | +Defining units for OpenXml properties and the unit conversion function. |
| 44 | + |
| 45 | +### Install |
| 46 | + |
| 47 | +DLL Pakcage: |
| 48 | + |
| 49 | +```xml |
| 50 | +<PackageReference Include="dotnetCampus.OpenXmlUnitConverter" Version="1.8.0" /> |
| 51 | +``` |
| 52 | + |
| 53 | +[SouceYard](https://github.com/dotnet-campus/SourceYard) Package: |
| 54 | + |
| 55 | +```xml |
| 56 | +<PackageReference Include="dotnetCampus.OpenXmlUnitConverter.Source" Version="1.8.0"> |
| 57 | + <PrivateAssets>all</PrivateAssets> |
| 58 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 59 | +</PackageReference> |
| 60 | +``` |
| 61 | + |
| 62 | +### Usage |
| 63 | + |
| 64 | +The sample: |
| 65 | + |
| 66 | +```csharp |
| 67 | +void Foo(DocumentFormat.OpenXml.Drawing.Point2DType point) |
| 68 | +{ |
| 69 | + var x = new Emu(point.X); |
| 70 | + var pixelValue = x.ToPixel(); |
| 71 | + var cmValue = x.ToCm(); |
| 72 | +} |
| 73 | +``` |
| 74 | + |
| 75 | +# Thanks |
| 76 | + |
| 77 | +- [OfficeDev/Open-XML-SDK: Open XML SDK by Microsoft](https://github.com/OfficeDev/Open-XML-SDK/ ) |
| 78 | +- [ironfede/openmcdf: Microsoft Compound File .net component - pure C# - NET Standard 2.0](https://github.com/ironfede/openmcdf ) |
| 79 | + |
| 80 | +# Contributing |
| 81 | + |
| 82 | +[](https://github.com/dotnet-campus/DocumentFormat.OpenXml.Extensions/pulls) |
| 83 | + |
| 84 | +If you would like to contribute, feel free to create a [Pull Request](https://github.com/dotnet-campus/DocumentFormat.OpenXml.Extensions/pulls), or give us [Bug Report](https://github.com/dotnet-campus/DocumentFormat.OpenXml.Extensions/issues/new). |
| 85 | + |
| 86 | +# License |
| 87 | + |
| 88 | +[](LICENSE) |
0 commit comments