Aspose.Words FOSS for .NET is a MIT-licensed pure-C# library for working with Word .docx files. It is not a rewrite or a wrapper: it is the actual Aspose.Words for .NET source code, the same document engine that has processed Word documents in production since 2003, reduced down to a free, open-source core.
The library exposes the same Document Object Model used by the commercial product — Document, DocumentBuilder, Section, Paragraph, Run, Table, and hundreds of related classes. Create documents from scratch or open existing ones, manipulate text, tables, lists, styles, headers and footers, bookmarks, comments, and footnotes, and convert between DOCX, Markdown, and plain text. A full field evaluation engine is included, so fields such as DATE, DOCPROPERTY, and mail-merge fields update programmatically (fields that depend on page layout, such as page numbers, evaluate to placeholder values since page layout itself is not part of this edition).
The library targets .NET Standard 2.0, so it runs on .NET Framework 4.6.2+, .NET 6/8/10, on Windows, Linux, and macOS, with no native dependencies. A NuGet package has not been published yet — build the library from source (see below). Developers who need the complete enterprise API — full page layout and rendering, image and PDF output, and additional format converters — can use Aspose.Words for .NET alongside these open-source resources.
.docx files via new Document() and new Document(path).DocumentBuilder to insert text, move the cursor to sections and bookmarks, and apply font, paragraph, and page formatting in a few calls.DocumentVisitor to process every node type.DocumentBuilder and node APIs.DATE, DOCPROPERTY, REF, SEQ, and mail-merge fields programmatically via the full field engine.Table/Row/Cell, including per-region conditional formatting via ConditionalStyle.ListCollection and ListFormat.RevisionCollection API.DocumentSecurity enum.Aspose.Words FOSS is pure C# targeting .NET Standard 2.0 — no native extensions to compile, no system packages to install. A NuGet package is coming soon; until then, build from source with a single dotnet build command.
The API mirrors the commercial Aspose.Words for .NET object model, so the official documentation and examples largely apply within this edition’s supported feature set. It is MIT-licensed and open-source on GitHub.
Use DocumentBuilder.InsertChart() to add a chart shape to a document, then access its Chart object to configure series data. Clear the default generated series before adding real data.
git clone https://github.com/aspose-words-foss/Aspose.Words-FOSS-for-.NET.git
cd Aspose.Words-FOSS-for-.NET
dotnet build Aspose.Words.sln -c Release
using Aspose.Words;
using Aspose.Words.Drawing.Charts;
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.InsertChart(ChartType.Line, 432, 252);
Chart chart = shape.Chart;
// Delete default generated series.
chart.Series.Clear();
string[] categories = new string[] { "AW Category 1", "AW Category 2", "AW Category 3" };
chart.Series.Add("AW Series 1", categories, new double[] { 4.3, 2.5, 3.5 });
doc.Save("chart.docx");
Aspose.Words FOSS for .NET is released under the MIT License. You may use it in personal, commercial, and closed-source projects free of charge, with no royalty and no runtime license key or activation step.
A NuGet package has not been published yet, so the library must be built from source. Clone the repository and build the solution in Release configuration, then add a project reference to Aspose.Words.csproj from your own application.
DOCX, DOCM, DOTX, DOTM, and Flat OPC (plus its macro-enabled and template variants) for both load and save, sharing the same OOXML reader/writer, plus Markdown and plain text for both load and save.
No. This edition does not include the page-layout and rendering subsystem, so Document.Save() cannot export to PDF, XPS, or image formats. Save to DOCX, DOCM, DOTX, DOTM, Flat OPC, Markdown, or plain text instead.
No. This edition can inspect and verify digital signatures already attached to a .docx file, but it cannot create new signatures. A signing workflow requires the commercial Aspose.Words for .NET.
No. Mail merge execution, LINQ Reporting, document comparison, and embedded-font subsetting are not included in this FOSS edition.