Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plutext/docx4j.net
docx4j is an open source (ASLv2) library for docx/pptx/xlsx, similar in concept to Open XML SDK, but with its own particular strengths including content control databinding (with OpenDoPE enhancements), XHTML import/export, PDF output, and MERGEFIELD processing. This is the .NET version of docx4j.
https://github.com/plutext/docx4j.net
Last synced: 2 months ago
JSON representation
docx4j is an open source (ASLv2) library for docx/pptx/xlsx, similar in concept to Open XML SDK, but with its own particular strengths including content control databinding (with OpenDoPE enhancements), XHTML import/export, PDF output, and MERGEFIELD processing. This is the .NET version of docx4j.
- Host: GitHub
- URL: https://github.com/plutext/docx4j.net
- Owner: plutext
- License: apache-2.0
- Created: 2014-03-05T10:04:55.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-08-13T00:25:57.000Z (over 6 years ago)
- Last Synced: 2024-10-02T03:25:10.147Z (3 months ago)
- Language: C#
- Size: 19.7 MB
- Stars: 70
- Watchers: 8
- Forks: 22
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docx4j.NET
.NET bindings for docx4j
## Motivation
Microsoft's Open XML SDK is the de facto way of working with docx/pptx/xlsx files in .NET environment.
However, it is quite a low level API; there is useful additional functionality in docx4j (see samples below), which can be utilised in a .NET environment.
Also, some docx4j users server side want to standardise on a single API, and so use docx4j client side (eg via VSTO AddIn).
## Users
You can install the NuGet package; see http://www.nuget.org/packages/docx4j.NET/
### Samples
Installing the NuGet package will add a dir src to your project; in src/samples you will see sample code for:
- simple HelloWorld docx
- docx desensitization/anonymization (so a docx can be sent for tech support without disclosing anything sensitive)
- ToC updating
- docx to PDF (in v3.3.x, this uses Plutext's PDF Converter, not docx4j per se)
- docx to HTML
- mail merge (MERGEFIELD processing)
- content control data binding
All of those should run out of the box (provided you have set: Project Properties > Startup object)For examples of how to do other stuff with docx4j, please see https://github.com/plutext/docx4j/tree/master/src/samples
Translating any of that code from Java to C# ought to be straightforward.## Developers
You can clone this project.
The easiest way to add the needed references is still via NuGet.