Egap.Pdf
2.2.0
dotnet add package Egap.Pdf --version 2.2.0
NuGet\Install-Package Egap.Pdf -Version 2.2.0
<PackageReference Include="Egap.Pdf" Version="2.2.0" />
<PackageVersion Include="Egap.Pdf" Version="2.2.0" />
<PackageReference Include="Egap.Pdf" />
paket add Egap.Pdf --version 2.2.0
#r "nuget: Egap.Pdf, 2.2.0"
#:package Egap.Pdf@2.2.0
#addin nuget:?package=Egap.Pdf&version=2.2.0
#tool nuget:?package=Egap.Pdf&version=2.2.0
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 | 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)
- System.Security.Cryptography.Pkcs (>= 10.0.13)
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.