NuGet packages of PDFsharp and MigraDoc
Version 6.2.0
In this article
This article describes what build flavors of PDFsharp exist and what the NuGet packages contain.
Build flavors of PDFsharp and MigraDoc
PDFsharp can be used standalone without MigraDoc. MigraDoc however depends on PDFsharp. Therefore we provide NuGet packages with PDFsharp only and packages MigraDoc that depend on PDFsharp packages.
Furthermore, the packages are available in three build flavors: Core, GDI+, and WPF.
Note: Beginning with version 6.2.0, the MigraDoc NuGet packages depend on the corresponding PDFsharp packages. The 6.0 and 6.1 versions of the MigraDoc packages included the PDFsharp assemblies. The new NuGet packages scheme makes it easier if some of your projects only use PDFsharp while other projects use MigraDoc.
PDFsharp Core
The Core build is pure .NET 6/8 or .NET Standard 2.0. It runs on every platform .NET runs on, including Windows, Linux, and Mac. Packages and assemblies of the Core build have no suffix.
PDFsharp GDI+
The GDI+ build contains additional functionality from the System.Drawing
namespace. It is provided for projects that are based on Windows Forms using .NET 6 or .NET Framework. It runs, of course, under Windows only. Packages and assemblies of the GDI+ build have the -gdi
suffix.
It can also be used with Windows applications that do not use Windows Forms.
PDFsharp WPF
The WPF build contains additional functionality that comes from the Windows Presentation Foundation.
It is provided for projects that are based on WPF using .NET 6 or .NET Framework. It runs under Windows only.
Packages and assemblies of the WPF build have the -wpf
suffix.
It can also be used with Windows applications that do not use WPF.
More about the build flavors
More information about flavors
List of NuGet packages
Beside these three flavors/builds there are PDFsharp NuGet packages with or without MigraDoc. Each package supports two framework targets, .NET 6 and .NET Framework 4.6.2 / .NET Standard 2.0.
Package name | Description |
---|---|
PDFsharp | The core package of PDFsharp. Use this for console or web apps on any .NET platform. It contains packages for the target frameworks .NET 6 and .NET Standard 2.0 (<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks> ). |
PDFsharp-GDI | The GDI+ (Windows Forms) package of PDFsharp. Use this for console or Windows Forms applications. It contains packages for the target frameworks .NET 6 for Windows and .NET Framework 4.6.2 (<TargetFrameworks>net6.0-windows;net462</TargetFrameworks> ). |
PDFsharp-WPF | The WPF package of PDFsharp. Use this for console or WPF applications. It contains packages for the target frameworks .NET 6 for Windows and .NET Framework 4.6.2 (<TargetFrameworks>net6.0-windows;net462</TargetFrameworks> ). |
PDFsharp-MigraDoc | The core package of MigraDoc. This package depends on the PDFsharp NuGet package. Use this for console or web apps on any .NET platform. It contains packages for the target frameworks .NET 6 and .NET Standard 2.0 (<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks> ). |
PDFsharp-MigraDoc-GDI | The GDI+ (Windows Forms) package of MigraDoc. This package depends on the PDFsharp-GDI NuGet package. Use this for console or Windows Forms applications. It contains packages for the target frameworks .NET 6 for Windows and .NET Framework 4.6.2 (<TargetFrameworks>net6.0-windows;net462</TargetFrameworks> ). |
PDFsharp-MigraDoc-WPF | The WPF package of MigraDoc. This package depends on the PDFsharp-WPF NuGet package. Use this for console or WPF applications. It contains packages for the target frameworks .NET 6 for Windows and .NET Framework 4.6.2 (<TargetFrameworks>net6.0-windows;net462</TargetFrameworks> ). |
Note
For users of PDFsharp & MigraDoc version 1.5: With version 1.5 the packages PDFsharp and PDFsharp-MigraDoc still depended on GDI+ to import images and resolve fonts.
To get the same functionality with version 6.x, use either one of the -GDI oder one of the -WPF packages.
More information on upgrades