Egap.Documents
2.3.0
dotnet add package Egap.Documents --version 2.3.0
NuGet\Install-Package Egap.Documents -Version 2.3.0
<PackageReference Include="Egap.Documents" Version="2.3.0" />
<PackageVersion Include="Egap.Documents" Version="2.3.0" />
<PackageReference Include="Egap.Documents" />
paket add Egap.Documents --version 2.3.0
#r "nuget: Egap.Documents, 2.3.0"
#:package Egap.Documents@2.3.0
#addin nuget:?package=Egap.Documents&version=2.3.0
#tool nuget:?package=Egap.Documents&version=2.3.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. Files encrypted with a password open with it and save with one.
- Word's binary DOC files read (Word 97 to 2003, Word 6 and Word 95): formatting, lists, tables, sections, notes, comments, fields, tracked changes, pictures, shapes and text boxes; password-protected ones open with their password.
- RTF read and written as Word writes it: styles, lists, tables, sections, headers and footers, notes, fields, comments, tracked changes and pictures.
- OpenDocument Text (ODT, OTT, flat FODT and FOTT) read as LibreOffice writes it and written as ODF 1.3 (1.2 and 1.4 as options): styles, lists, tables, page styles, notes, fields, comments, tracked changes and pictures. Files encrypted with a password open with it and save with one; ODT to ODT keeps what the model does not name.
- Styles, lists numbered as Word numbers them, tables, fields, comments, tracked changes; find, replace and a builder.
- Document compare with
DocumentCompare.Run: two versions, from any formats Egap reads, become one document with the differences as tracked changes (words, paragraphs, table rows, formatting, moves, headers and footers, notes), and a list of the changes to accept or reject one by one. - Page layout with floats, columns, headers and footers, footnotes, and flex and grid containers, rendered to images, SVG or PDF.
- Charts read, edited, made and drawn on any Egami canvas with
Chart.Draw: one model for Word documents and workbooks. - 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, DOC, RTF, ODT, 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.1)
- Egami.Drawing (>= 1.5.0)
- Egami.Fonts.Substitutes (>= 1.1.0)
- Egami.Metafiles (>= 1.0.2)
- Egami.Svg (>= 1.5.0)
- Egap.Pdf (>= 2.3.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
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.