![]() |
VOOZH | about |
dotnet add package ZingPDF --version 1.0.58
NuGet\Install-Package ZingPDF -Version 1.0.58
<PackageReference Include="ZingPDF" Version="1.0.58" />
<PackageVersion Include="ZingPDF" Version="1.0.58" />Directory.Packages.props
<PackageReference Include="ZingPDF" />Project file
paket add ZingPDF --version 1.0.58
#r "nuget: ZingPDF, 1.0.58"
#:package ZingPDF@1.0.58
#addin nuget:?package=ZingPDF&version=1.0.58Install as a Cake Addin
#tool nuget:?package=ZingPDF&version=1.0.58Install as a Cake Tool
ZingPDF is a proprietary .NET 8 PDF library for loading, creating, editing, signing, validating signatures, redacting, and saving PDFs in C#.
It covers the PDF jobs many applications need first: fluent PDF authoring, Liquid HTML template rendering through a companion package, existing-PDF page editing, text extraction, form creation and completion, signing, signature validation, encryption, redaction, metadata updates, and rewritten saves without prior incremental history.
dotnet add package ZingPDF
Create a new PDF with the fluent API:
using ZingPDF;
using ZingPDF.Graphics;
await Pdf.New()
.Page(page => page
.Size(595, 842)
.Text(text => text
.Value("Hello from ZingPDF")
.HelveticaBold()
.FontSize(24)
.At(48, 780))
.Rectangle(box => box
.At(48, 720)
.Size(220, 48)
.Fill(RGBColour.PrimaryBlue)))
.SaveAsync(File.Create("hello.pdf"));
Edit an existing PDF:
using var input = File.OpenRead("input.pdf");
using var output = File.Create("edited.pdf");
using var pdf = Pdf.Load(input);
await pdf.Pages(pages => pages
.Page(1, page => page
.Text(text => text
.Value("Approved")
.HelveticaBold()
.FontSize(18)
.At(48, 780))))
.SaveAsync(output);
Create a blank PDF with the standard page API:
using ZingPDF;
using ZingPDF.Fonts;
using ZingPDF.Graphics;
using ZingPDF.Syntax.CommonDataStructures;
using var pdf = Pdf.Create();
var page = await pdf.GetPageAsync(1);
var font = await pdf.RegisterStandardFontAsync(StandardPdfFonts.Helvetica);
await page.AddTextAsync(
"Hello from ZingPDF",
Rectangle.FromDimensions(320, 72),
font,
18,
RGBColour.Black);
await pdf.SaveAsync(File.Create("hello-standard.pdf"));
Read displayed page geometry and translate an overlay point:
using ZingPDF;
using ZingPDF.Elements.Drawing;
using var input = File.OpenRead("input.pdf");
using var pdf = Pdf.Load(input);
var page = await pdf.GetPageAsync(1);
var geometry = await page.GetGeometryAsync();
var displayPoint = geometry.PageToDisplay(new Coordinate(72, 144));
Console.WriteLine($"{geometry.DisplayWidth} x {geometry.DisplayHeight}");
Console.WriteLine($"Preview point: {displayPoint.X}, {displayPoint.Y}");
GetGeometryAsync() resolves inherited MediaBox, CropBox, and Rotate values. PDF page coordinates use a bottom-left origin. Display coordinates use a top-left origin after the visible page box and clockwise page rotation are applied.
Create and fill a PDF form:
using ZingPDF;
using ZingPDF.Elements.Drawing;
using ZingPDF.Elements.Forms.FieldTypes.Text;
using ZingPDF.Syntax.CommonDataStructures;
using var pdf = Pdf.Create();
var form = await pdf.GetOrCreateFormAsync();
await form.AddTextFieldAsync(
1,
"Customer.Name",
Rectangle.FromCoordinates(
new Coordinate(48, 720),
new Coordinate(280, 752)),
options => options.DefaultValue = "Ada Lovelace");
var nameField = await form.GetFieldAsync<TextFormField>("Customer.Name");
await nameField.SetValueAsync("Ada Lovelace");
await pdf.SaveAsync(File.Create("form-created-and-filled.pdf"));
Redact sensitive text and save rewritten output:
using var input = File.OpenRead("sensitive.pdf");
using var output = File.Create("redacted.pdf");
using var pdf = Pdf.Load(input);
var plan = await pdf.RedactionAsync();
await plan.MarkTextAsync("Secret");
await plan.ApplyAsync(new PdfRedactionOptions
{
OverlayText = "REDACTED"
});
await pdf.SaveAsync(output);
Sign a visible signature field:
using System.Security.Cryptography.X509Certificates;
using ZingPDF.Elements.Forms.FieldTypes.Signature;
using var certificate = new X509Certificate2("signing.pfx", "password");
using var input = File.OpenRead("contract.pdf");
using var output = File.Create("contract-signed.pdf");
using var pdf = Pdf.Load(input);
var form = await pdf.GetFormAsync();
var signatureField = await form.GetFieldAsync<SignatureFormField>("Approval.Signature");
await signatureField.SignAsync(certificate, new PdfSignatureOptions
{
SignerName = "Ada Lovelace",
Reason = "Approved"
});
await pdf.SaveAsync(output);
Validate a signed PDF:
using ZingPDF;
using var input = File.OpenRead("contract-signed.pdf");
using var pdf = Pdf.Load(input);
var signatures = await pdf.GetSignaturesAsync();
var result = await signatures[0].ValidateIntegrityAsync();
if (result.Status == PdfSignatureValidationStatus.Valid)
{
Console.WriteLine("The signed byte ranges match the detached CMS signature.");
}
Pdf.New() or Pdf.Create()ZingPDF.Templates.LiquidHtmlZingPDF.FromHTMLpdf.Pages(...)pdf.ObjectsPerformanceTraceZingPDF: core PDF load, author, edit, sign, signature validation, redact, form, metadata, and encryption APIsZingPDF.GoogleFonts: download and register Google FontsZingPDF.OCR: OCR support for scanned and image-based PDF pagesZingPDF.FromHTML: render HTML to PDF through PuppeteerSharpZingPDF.Templates: shared contracts for template renderer packagesZingPDF.Templates.LiquidHtml: render Liquid HTML templates to PDF through Fluid and ZingPDF.FromHTMLZingPDF is proprietary software. Review LICENSE.txt and ensure you have an active paid subscription with sufficient seats, or another applicable commercial agreement, before commercial use or commercial bundling.
Evaluation and other non-commercial use are free.
See SUPPORT.md in the package root or docs/project/SUPPORT.md in the repository for the current support stance and release-readiness notes.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 3 NuGet packages that depend on ZingPDF:
| Package | Downloads |
|---|---|
|
ZingPDF.FromHTML
HTML-to-PDF conversion helpers for ZingPDF using PuppeteerSharp. |
|
|
ZingPDF.GoogleFonts
Google Fonts integration package for ZingPDF. |
|
|
ZingPDF.OCR
OCR companion package for image-based PDF pages in ZingPDF. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.58 | 186 | 5/28/2026 |
| 1.0.57 | 168 | 5/25/2026 |
| 1.0.56 | 174 | 5/15/2026 |
| 1.0.54 | 169 | 4/19/2026 |
| 1.0.49 | 164 | 4/9/2026 |
| 1.0.48 | 156 | 4/7/2026 |
| 1.0.45 | 156 | 4/6/2026 |
| 1.0.44 | 155 | 4/6/2026 |
| 1.0.43 | 161 | 4/6/2026 |
| 1.0.40 | 146 | 4/5/2026 |
| 1.0.36 | 123 | 4/5/2026 |
| 1.0.35 | 124 | 4/4/2026 |
| 1.0.34 | 122 | 4/4/2026 |
| 1.0.33 | 126 | 4/4/2026 |
| 1.0.32 | 130 | 4/3/2026 |
| 1.0.31 | 123 | 4/3/2026 |