GithubHelp home page GithubHelp logo

senvenqi / docx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wtulloch/docx

0.0 0.0 0.0 20.31 MB

Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.

License: Microsoft Public License

C# 100.00%

docx's Introduction

What is DocX?

DocX is a .NET library that allows developers to manipulate Word 2007/2010/2013 files, in an easy and intuitive manner. DocX is fast, lightweight and best of all it does not require Microsoft Word or Office to be installed.

DocX Author

DocX is the free, open source version of Xceed Words for .NET. Originally written by Cathal Coffey, and maintained by Przemyslaw Klys, it is now maintained by Xceed.

Currently, the only difference between DocX and Xceed Words for .NET, is that Xceed Words for .NET can convert a Word document to PDF, and has professional technical support included in the subscription.

About this version

This is a port of the original DocX that has been updated to target .NET Standard 2.0. To limit any changes to the original code base this will currently only work for on Windows OS due to an existing dependency on Windows.Identity.

What else do I need?

All that you need to install in order to use DocX Standard is .NET Core 2.1 or greater and Visual Studio 2017 or later, both of which are free.

What are the main features of DocX?

Edition DocX Xceed Words for .NET
Price Free $499.95
License Ms-PL Proprietary
Email support YES
Create new Word documents YES YES
Modify Word documents YES YES
Create new PDF documents YES
Convert Word to PDF YES
Supports .DOCX from Word 2007 and up YES YES
Modify multiple documents in parallel for better performance YES YES
Apply a template to a Word document YES YES
Join documents, recreate portions from one to another YES YES
Supports document protection with or without password YES YES
Set document margins and page size YES YES
Set line spacing, indentation, text direction, text alignment YES YES
Wrap text around pictures YES
Pictures with cropping YES
Manage fonts and font sizes YES YES
Set text color, bold, underline, italic, strikethrough, highlighting YES YES
Set page numbering YES YES
Create sections YES YES

Supported Word document elements

  • Add headers or footers which can be the same on all pages, or unique for the first page, or unique for odd/even pages. Can contain images, hyperlinks and more.
  • Insert/Modify paragraphs.
  • Insert/Modify numbered or bulleted lists.
  • Insert/Modify images. Flip, rotate, copy, modify, resize.
  • Insert/Modify tables. Insert/Remove rows, columns, change direction, column width, row height, borders, merge/delete cells.
  • Insert/Modify formatted equations or formulas.
  • Insert/Modify bookmarks.
  • Insert/Modify hyperlinks.
  • Insert/Modify horizontal lines.
  • Insert/Modify charts (bar, line, pie, 3D chart). Set colors, titles, legend, etc.
  • Find, remove or replace text. Supports case sensitivity and regular expressions.
  • Insert/Modify core or custom properties, such as author, address, subject, title, etc.
  • Insert a Table Of Contents. Set title, change formatting.

Why would I use DocX?

DocX makes creating and manipulating documents a simple task. It does not use COM libraries nor does it require Microsoft Office to be installed.

The following blog post from Cathal Coffey compares the code used to create a HelloWorld document using:

  1. Office Interop libraries,
  2. OOXML SDK,
  3. DocX

Advanced Examples

  1. Step by step guide to create an invoice for a company. http://cathalscorner.blogspot.com/2009/08/docx-v1007-released.html
  2. Replace text across many documents in Parallel. http://cathalscorner.blogspot.com/2010/12/replace-text-across-many-documents-in.html
  3. Programmatically manipulate an Image imbedded inside a document. http://cathalscorner.blogspot.com/2010/12/programmatically-manipulate-image.html
  4. Converting DocX into (.doc, .pdf, .html) http://cathalscorner.blogspot.com/2009/10/converting-docx-into-doc-pdf-html.html

Do you have an interesting or informative example that you would like to share? If you do, please email me.

What do other people think?

Testimonials


NuGet Version

docx's People

Contributors

przemyslawklys avatar victorloktev avatar cponty avatar vzhikserg avatar michalazza avatar williamtulloch avatar fitdev avatar twotsman avatar lucwuyts avatar grabzit avatar xceedbouchers avatar xwgli avatar mdum avatar jafin avatar ermoll avatar delphin0850 avatar cradaydg avatar chrischip avatar oromand avatar martin-schiel avatar lahma avatar janbernloehr avatar henrys22 avatar zambiorix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.