Skip to content

Latest commit

 

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocXReducer

DocXReducer is a library for reducing size of Word documents (.docx) by simplifying theirs XML. Consider using it for archived documents, because after reducing some Word functions may not work correctly

Test on XMLFileFormatsGuide.docx shows 15% size decreasing

This library uses only DocumentFormat.OpenXml

Get Started

Install package DocxReducer with the Nuget package manager or the CLI

dotnet add package DocxReducer

Then with the class

var reducer = new Reducer();

it's possible to process a document by path

reducer.Reduce(@".\Document.docx");

or with a WordprocessingDocument class

var docx = WordprocessingDocument.Open(@".\Document.docx", true);

reducer.Reduce(docx);

Build console app

To build console app enter:

dotnet publish -c Release -r rid

where rid is Runtime Identifier of target system. Possible values are:

  • Windows: win-x64
  • Linux: linux-x64
  • MacOS: osx-x64

Full list of rids can be found here

About

Lib for reducing size of docx without losses

Topics

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages