PDFSharper: the MIT PDFsharp line, kept on .NET 10

Glowing teal pipeline with three cards, branching up into a document page icon on a dark navy grid

PDFsharp is an open source PDF library for .NET. empira Software GmbH has maintained it for more than twenty years. Its 6.1.1 and 6.2.x releases are MIT licensed. Its 6.5.0 release lists AGPL-3.0-only.

We maintain PDFSharper, a fork of PDFsharp that stays MIT. This post covers what the fork is, what it changes, what is on NuGet today, and who should use it.

Where upstream stands

Here is what the NuGet metadata for each PDFsharp release line says, checked on 5 December 2026.

ReleaseLicenseTarget frameworks
6.1.1MITnet6.0, netstandard2.0
6.2.4 (6.2.0 to 6.2.3 are also MIT)MITnet8.0, net9.0, net10.0, netstandard2.0
6.5.0AGPL-3.0-onlynet8.0, net9.0, net10.0, netstandard2.0
7.0.0-preview-2AGPL-3.0-onlynot listed

Read the license text for the release you plan to use. This post is not legal advice.

Why we forked

We ship on .NET 10. A library that targets .NET 6 still runs on .NET 10, so PDFsharp 6.1.1 did not stop working for us. What we needed was a build we control, on a target we ship, with no private patch set in each repository that uses PDFs.

The alternative was a patch set in every repository. We chose one public fork instead, and we published it so anyone with the same need can use it. The result is PDFSharper.

A fork, not a rewrite

PDFSharper is a maintenance fork. The public API is deliberately unchanged. Every type and signature is where you left it, with one exception: the product prefix, because the namespace is part of the product.

using PDFSharper.Drawing;
using PDFSharper.Pdf;

var document = new PdfDocument();
var page = document.AddPage();
using var gfx = XGraphics.FromPdfPage(page);
var font = new XFont("Verdana", 20, XFontStyleEx.Bold);
gfx.DrawString("Hello from PDFSharper", font, XBrushes.Black,
    new XRect(0, 0, page.Width, page.Height), XStringFormats.Center);
document.Save("HelloWorld.pdf");

If you have working PDFsharp code, migrating takes three mechanical steps:

  1. Replace the package reference PDFsharp with PDFSharper.
  2. Replace using PdfSharp... with using PDFSharper....
  3. Rebuild.

Nothing else changes. XPdfFontOptions, PdfPage, XGraphics, the drawing model and the font resolvers all behave the same, including the quirks you already know how to work around.

What we changed

The target frameworks. The core library builds for net10.0 and netstandard2.0. The GDI and WPF variants build for net10.0-windows and net472, so consumers still on .NET Framework keep a working dependency. The netstandard2.0 build also covers any other runtime that supports .NET Standard 2.0.

The netstandard2.0 build itself. C# 14 changed overload resolution for Span<T>.Reverse(). The PDFsharp 6.1.1 source stopped compiling for netstandard2.0 against current SDKs, and we fixed it. Upstream 6.2.4 carries its own fix for the same line.

Six packages. PDFSharper, PDFSharper-GDI, PDFSharper-WPF, and the three MigraDoc variants: PDFSharper-MigraDoc, PDFSharper-MigraDoc-GDI and PDFSharper-MigraDoc-WPF. MigraDoc keeps its own name and now depends on PDFSharper instead of PDFsharp.

Our own build and release pipeline. GitHub Actions builds the solution and runs the core test suite on a clean Windows runner. It publishes through NuGet Trusted Publishing. The workflow exchanges a short-lived OIDC token for a temporary API key at publish time. The only repository secret it reads is the nuget.org profile name, so no long-lived API key sits in the repository.

Fork-owned packaging. The icons, README, release notes and package metadata are our own. The upstream product identity is replaced throughout, because a fork that reports itself as the original product creates support problems.

What we did not change

The license. PDFSharper remains MIT, and the original copyright notice stays in place in LICENSE.

PDFsharp exists because empira published it under a permissive license and kept it alive for more than twenty years. A fork is possible only because of that decision. We are not replacing their work. We carry a copy of it forward on our own schedule, and we are grateful for the license that makes that legal.

What is on NuGet today

The first stable release is 6.1.2, and it is built from PDFsharp 6.1.1. All six packages list it.

One earlier version, 6.1.3-tags-v6-1-2.1, also appears in the package listings. A version-numbering bug in our release workflow produced it. We fixed the workflow, and NuGet does not allow a published version to be replaced. It is a prerelease, so a default install picks 6.1.2.

The next step is a rebase onto PDFsharp 6.2.4, which already targets .NET 10 and is MIT. That work is planned and not done. When it ships it will carry a new version number, because 6.1.2 is taken.

Verifying it

A fork is only trustworthy if it demonstrably works. The fork builds clean on a hosted Windows runner. The core library tests run in CI on every push to main. The MigraDoc document object model tests pass on .NET 10 in our own run, with 109 passed, 3 skipped and 0 failed. The release workflow builds the solution, runs the core test suite and packs six packages from source. The binaries on NuGet are the ones the pipeline produced, not files uploaded from a developer machine.

Which one should you use

If upstream PDFsharp 6.2.4 meets your needs, use it. It is MIT, it targets .NET 10, and you do not need a fork.

If you want an MIT package that follows its own release schedule, with a public pipeline you can read, PDFSharper is the option. Today’s release has the 6.1.1 feature set. It does not have the 6.2.x changes until the rebase ships.

If PDFsharp already works for you, there is no reason to move.

We treat PDFSharper as infrastructure. It gets upgrades when .NET moves, fixes when a bug matters to us, and releases when there is something worth releasing. It is public, it is MIT, and issues and pull requests are welcome.

About the author

Slava Khristich

CTO at TATEEDA | GLOBAL

Slava Khristich is the Chief Technology Officer of TATEEDA | GLOBAL, a San Diego-based custom software development company founded in 2013. He leads engineering for healthcare organizations, medical practices, and health-tech startups building HIPAA-compliant systems: EHR and EMR integrations, patient portals, telehealth platforms, medical billing…

Contact us to start

We normally respond within 24 hours

If you need immediate attention, please give us
a call at +1 (619) 630-7568

Use our free estimator to find out your
approximate cost.

We reply within 24 hours, and the first call is with the CTO, not a salesperson.