Egap.Documents
2.2.0
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
<PackageReference Include="Egap.Documents" Version="2.2.0" />
<PackageVersion Include="Egap.Documents" Version="2.2.0" />
<PackageReference Include="Egap.Documents" />
paket add Egap.Documents --version 2.2.0
#r "nuget: Egap.Documents, 2.2.0"
#:package Egap.Documents@2.2.0
#addin nuget:?package=Egap.Documents&version=2.2.0
#tool nuget:?package=Egap.Documents&version=2.2.0
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 | Versions 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. |
-
net10.0
- Egami.Barcodes (>= 1.0.0)
- Egami.Drawing (>= 1.2.0)
- Egami.Fonts.Substitutes (>= 1.0.0)
- Egami.Metafiles (>= 1.0.0)
- Egami.Svg (>= 1.2.0)
- Egap.Pdf (>= 2.2.0)
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.