Egap.Documents 2.2.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Egap.Documents --version 2.2.0
                    
NuGet\Install-Package Egap.Documents -Version 2.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Egap.Documents" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Egap.Documents" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Egap.Documents" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Egap.Documents --version 2.2.0
                    
#r "nuget: Egap.Documents, 2.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Egap.Documents@2.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Egap.Documents&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Egap.Documents&version=2.2.0
                    
Install as a Cake Tool

Egap.Documents

Flow documents for .NET 10: one editable document model with DOCX and plain-text readers and writers, a page layout engine that draws onto any Egami canvas, PDF export, and PDF pages analysed and converted back into documents. Fully managed and MIT-licensed.

  • DOCX, DOTX and DOCM read and written; what the model does not name is kept, so DOCX to DOCX is lossless.
  • Styles, lists numbered as Word numbers them, tables, fields, comments, tracked changes; find, replace and a builder.
  • Page layout with floats, columns, headers and footers, footnotes, and flex and grid containers, rendered to images, SVG or PDF.
  • Reports in code with Report.Create: nested lambdas for pages, rows, columns, tables, text, styles and components.
  • PDF export with links, outline, tags and PDF/A; one-line conversions with PdfConvert.
  • PDF to document: blocks, reading order, headings, lists, tables and figures; auto-tagging, Docling JSON and table CSV.
  • HTML and Markdown come as add-on packages: Egap.Documents.Html and Egap.Documents.Markdown.
using Egap.Documents;
using Egap.Documents.Layout;
using Egap.Documents.Pdf;

Document doc = Document.Load("report.docx");                     // DOCX, PDF or plain text, told apart by content
DocumentBuilder builder = new(doc);
builder.Writeln("Added at the end.");
doc.Replace("colour", "color");
doc.Save("report-edited.docx");
doc.SaveAsPdf("report.pdf");

DocumentLayout pages = doc.Layout();
pages.Pages[0].Render(dpi: 150).Save("page1.png");

Source and changelog: github.com/inexin/Egap.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Egap.Documents:

Package Downloads
Egap.Documents.Html

HTML for Egap.Documents: HTML and XHTML read into the document model through the CSS cascade and written from it, with flexbox and grid layout, rounded and shadowed boxes, positioned boxes, @page rules and margin boxes, HTML to PDF, HTML stamps and page bands, MHTML web archives, and EPUB 2 and 3 books read and EPUB 3.3 books written.

Egap.Documents.Markdown

Markdown for Egap.Documents: CommonMark and GitHub Markdown read into the document model and written from it, with front matter, images and Markdown to PDF.

Egap.Spreadsheets

Preview. Spreadsheets for .NET: workbooks you create and edit from code, with sparse sheets of up to 1,048,576 rows by 16,384 columns, shared strings and interned cell styles as Excel keeps them.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.0-preview.1 57 11/13/2026
2.2.0 139 10/29/2026
2.1.0 128 10/22/2026
2.0.0 127 10/22/2026
1.1.1 114 10/18/2026
1.1.0 124 10/18/2026