Egap.Pdf 2.2.0

dotnet add package Egap.Pdf --version 2.2.0
                    
NuGet\Install-Package Egap.Pdf -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.Pdf" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Egap.Pdf" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Egap.Pdf" />
                    
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.Pdf --version 2.2.0
                    
#r "nuget: Egap.Pdf, 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.Pdf@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.Pdf&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Egap.Pdf&version=2.2.0
                    
Install as a Cake Tool

Egap.Pdf

A fully managed, MIT-licensed PDF library for .NET 10. It reads PDF files, damaged and encrypted ones included, edits them and saves them incrementally or by full rewrite. Images, fonts and drawing come from Egami, which is managed too: no native binaries, no P/Invoke.

  • Pages, outlines, labels, metadata, attachments, layers, annotations and forms (XFA data included); merge and split.
  • Content streams, text extraction in reading order, image extraction and replacement, drawing through an Egami canvas.
  • Rendering to rasters or onto any Egami canvas.
  • Signatures (PAdES B-B to B-LTA) and verification, true redaction, PDF/A, tagged PDF, linearization, and searchable scans through any OCR engine you plug in.
  • Find, redact and replace text by phrase or regular expression; Factur-X and ZUGFeRD e-invoices.
  • Tools: optimize, N-up and booklets, stamps and Bates numbers, compare, blank page removal and deskew.
  • Print: preflight against a print profile, ink separations and total ink coverage, colour conversion to CMYK, PDF/X, overprint preview.

PDF to DOCX, HTML or Markdown, and documents to tagged PDF, are in Egap.Documents.

using Egap.Pdf;

using PdfDocument pdf = PdfDocument.Open("in.pdf");
Console.WriteLine(pdf.Pages[0].ExtractText());                   // lines in reading order

pdf.Metadata.Title = "Quarterly report";
pdf.Outline.Add("Summary", PdfDestination.ToPage(pdf.Pages[0]));
pdf.Save("out.pdf");                                             // incremental: the original bytes plus the changes

using Egami.Raster<Egami.Pixels.Rgba8> image = pdf.Pages[0].Render(new PdfRenderOptions { Dpi = 150 });
image.Save("page.png");

Source, more examples and the 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 (1)

Showing the top 1 NuGet packages that depend on Egap.Pdf:

Package Downloads
Egap.Documents

Flow documents for .NET: one editable document model with DOCX and plain-text readers and writers (HTML and Markdown in add-on packages), a page layout engine that draws onto any Egami canvas, PDF export with links, outline and tags, and PDF pages analysed back into documents.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.0 156 10/29/2026
2.1.0 131 10/22/2026
1.5.0 137 10/19/2026
1.4.1 121 10/18/2026
1.4.0 118 10/18/2026