miPDFlib 0.3.0
See the version list below for details.
dotnet add package miPDFlib --version 0.3.0
NuGet\Install-Package miPDFlib -Version 0.3.0
<PackageReference Include="miPDFlib" Version="0.3.0" />
<PackageVersion Include="miPDFlib" Version="0.3.0" />
<PackageReference Include="miPDFlib" />
paket add miPDFlib --version 0.3.0
#r "nuget: miPDFlib, 0.3.0"
#:package miPDFlib@0.3.0
#addin nuget:?package=miPDFlib&version=0.3.0
#tool nuget:?package=miPDFlib&version=0.3.0
miPDFlib
Open-source PDF library for .NET - create, edit, sign and validate PDFs without native dependencies.
An open-source (Apache-2.0) PDF library for .NET 8 / .NET 10: pure managed code, no native dependencies. Create, read, modify, merge, fill forms, extract text, encrypt and digitally sign (PAdES) PDF documents.
dotnet add package miPDFlib
The namespace is MiPdf (using MiPdf;). Versions up to 0.2.3-alpha were published under the package ID MiPdf,
which is deprecated; switch the package reference to miPDFlib, no code changes are needed.
Versioning: all planned feature areas are implemented and tested. Releases follow Semantic Versioning; until 1.0 the public API may still change between minor versions (see the changelog).
Features
| Area | Highlights |
|---|---|
| Core | tolerant parser (xref tables/streams, object streams, automatic repair), lazy loading, full and incremental saving, compact output with object streams |
| Creating content | canvas (paths, colors RGB/CMYK/gray, transparency, transformations), standard 14 fonts, TrueType/OpenType embedding with subsetting (full Unicode), JPEG/PNG images incl. alpha |
| Layout | paragraphs with mixed formatting, justification, kerning and hyphenation; lists; tables with repeated headers, column and row spans and rows split across pages; images, barcodes, automatic page breaks, header/footer with "page x of y" |
| Manipulation | merge, split, import/reorder/rotate/delete pages, page templates (letterheads), watermarks, bookmarks, links, annotations (highlight/underline/strike-out, free text, stamps, ink, shapes, file attachments, flattening) |
| Redaction | true removal of text, image pixels, vector graphics, annotations and form fields in areas, by text or regular expression |
| Text extraction | reading order, rotated text, ToUnicode/encodings/glyph names, words and lines with positions, text search (string/regex), image extraction, free-space detection |
| Forms | read/fill/create AcroForm fields (text, check box, radio, combo, list, push button, signature) with appearance generation, flattening, merging; XFA data |
| Encryption | open and create encrypted PDFs: AES-256, AES-128, RC4; passwords and permissions |
| Signatures | PAdES B-B/B-T/B-LT/B-LTA, RFC 3161 and document time-stamps, visible signatures, certification (DocMDP), field locks (FieldMDP), HSM/cloud signers, deferred two-step signing, multiple signatures, verification |
| PDF/A | PDF/A-1b/2b/2u/3b/3u output (XMP, sRGB output intent) and a basic conformance checker |
| Accessibility | tagged PDF and PDF/UA-1: automatic tagging by the layout engine, manual tagging API, PDF/UA checker |
| Attachments / e-invoices | embedded files with PDF/A-3 associated files, ZUGFeRD 2.x / Factur-X / XRechnung hybrid invoices |
| Hardening | resource limits against decompression bombs and CPU exhaustion, SSRF-safe revocation fetching, fuzz-tested parser |
| Barcodes | QR Code, EPC/GiroCode, Data Matrix (incl. GS1), Code 128/GS1-128, EAN-13/8, UPC-A, Code 39, ITF (vector output) |
The only dependency is System.Security.Cryptography.Pkcs (MIT, Microsoft) for CMS signatures.
Quick start
using MiPdf;
using MiPdf.Fonts;
using MiPdf.Graphics;
using MiPdf.Layout;
using MiPdf.Signatures;
// create
using var pdf = PdfDocument.Create();
using (var layout = new LayoutDocument(pdf, PageSize.A4, new Thickness(50)))
{
layout.Add(new Paragraph("Hello miPDFlib", PdfStandardFont.HelveticaBold, 20));
var table = new Table(1, 3);
table.AddHeaderCell("Pos"); table.AddHeaderCell("Description");
table.AddCell("1"); table.AddCell("Consulting");
layout.Add(table);
}
pdf.Save("hello.pdf");
// modify
using var doc = PdfDocument.Open("hello.pdf");
doc.GetPage(1).AddTextWatermark("DRAFT");
doc.Save("hello-draft.pdf");
// sign
byte[] signed = PdfSigner.Sign(File.ReadAllBytes("hello.pdf"), CertificateSigner.FromPfx("me.pfx", "pw"),
new PdfSignatureOptions { Reason = "Approved", TimestampClient = new HttpTimestampClient("http://timestamp.digicert.com") });
Documentation
- Creating documents: fonts, canvas, images, flow layout, tables
- Opening and manipulating: save options, pages, merge/split, stamps, bookmarks, links
- Text extraction: text, words, positions, search
- Redaction: removing confidential content
- Forms: read, fill, create and flatten form fields
- Security: passwords, permissions, AES/RC4 encryption
- Signatures: PAdES signing, HSM/external signers, time-stamps, verification
- Accessibility / PDF/UA: tagged PDF, PDF/UA, checker
- Attachments and e-invoices: embedded files, ZUGFeRD / Factur-X
- Barcodes: QR, EPC payment codes, Data Matrix, Code 128, EAN
- Migration from iText / Syncfusion
- Office documents to PDF: recommended conversion with LibreOffice via Gotenberg
License
Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE. Copyright 2026 Wolfgang Mitterbucher.
Source code, issues and contributions: github.com/Mibuw/miPDFlib.
Author
Wolfgang Mitterbucher, Software Engineering & Digital Identity, Leonding (Austria): www.mitterbucher.com · LinkedIn · office@mitterbucher.com
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- System.Security.Cryptography.Pkcs (>= 10.0.14)
-
net8.0
- System.Security.Cryptography.Pkcs (>= 10.0.14)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on miPDFlib:
| Package | Downloads |
|---|---|
|
miPDFlib.Rendering
Renders PDF pages to images (PNG or pixels) at any resolution, e.g. for previews, thumbnails and printing. Pure managed code for .NET 8/10 without native dependencies, based on miPDFlib (Apache-2.0). |
|
|
miPDFlib.PostScript
Converts PostScript and EPS to PDF and places EPS graphics in PDF documents. Pure managed code for .NET 8/10 without native dependencies, based on miPDFlib (Apache-2.0). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0 | 0 | 11/16/2026 |
| 1.4.0 | 109 | 11/12/2026 |
| 1.3.0 | 137 | 11/11/2026 |
| 1.2.0 | 158 | 11/5/2026 |
| 1.2.0-preview.2 | 62 | 11/5/2026 |
| 1.2.0-preview.1 | 60 | 11/5/2026 |
| 1.1.0 | 89 | 11/5/2026 |
| 1.0.0 | 97 | 11/4/2026 |
| 0.6.0 | 100 | 11/3/2026 |
| 0.5.0 | 99 | 11/2/2026 |
| 0.4.0 | 96 | 11/2/2026 |
| 0.3.1 | 94 | 11/2/2026 |
| 0.3.0 | 105 | 10/30/2026 |
| 0.2.8-alpha | 97 | 10/30/2026 |
| 0.2.7-alpha | 84 | 10/30/2026 |
| 0.2.6-alpha | 95 | 10/30/2026 |
| 0.2.5-alpha | 86 | 10/29/2026 |
| 0.2.4-alpha | 109 | 10/29/2026 |