![]() |
VOOZH | about |
dotnet add package PeachPDF.PdfSharpCore --version 0.8.0
NuGet\Install-Package PeachPDF.PdfSharpCore -Version 0.8.0
<PackageReference Include="PeachPDF.PdfSharpCore" Version="0.8.0" />
<PackageVersion Include="PeachPDF.PdfSharpCore" Version="0.8.0" />Directory.Packages.props
<PackageReference Include="PeachPDF.PdfSharpCore" />Project file
paket add PeachPDF.PdfSharpCore --version 0.8.0
#r "nuget: PeachPDF.PdfSharpCore, 0.8.0"
#:package PeachPDF.PdfSharpCore@0.8.0
#addin nuget:?package=PeachPDF.PdfSharpCore&version=0.8.0Install as a Cake Addin
#tool nuget:?package=PeachPDF.PdfSharpCore&version=0.8.0Install as a Cake Tool
👁 NuGet Version
👁 CI
👁 codecov.io
PeachPDF.PdfSharpCore is a partial port of PdfSharp.Xamarin for .NET Standard. Additionally MigraDoc has been ported as well (from version 1.32). Image support has been implemented with StbImageSharp.
The following code snippet creates a simple PDF-file with the text 'Hello World!'. The code is written for a .NET 8 console app with top level statements.
using PeachPDF.PdfSharpCore.Drawing;
using PeachPDF.PdfSharpCore.Fonts;
using PeachPDF.PdfSharpCore.Pdf;
using PeachPDF.PdfSharpCore.Utils;
GlobalFontSettings.FontResolver = new FontResolver();
var document = new PdfDocument();
var page = document.AddPage();
var gfx = XGraphics.FromPdfPage(page);
var font = new XFont("Arial", 20, XFontStyle.Bold);
var textColor = XBrushes.Black;
var layout = new XRect(20, 20, page.Width, page.Height);
var format = XStringFormats.Center;
gfx.DrawString("Hello World!", font, textColor, layout, format);
document.Save("helloworld.pdf");
We appreciate feedback and contribution to this repo!
This software is released under the MIT License. See the file for more info.
PeachPDF.PdfSharpCore relies on the following MIT-licensed packages:
| 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 1 NuGet packages that depend on PeachPDF.PdfSharpCore:
| Package | Downloads |
|---|---|
|
PeachPDF
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 0.8.0 | 0 | 6/18/2026 | |
| 0.8.0-preview4 | 60 | 6/18/2026 | |
| 0.8.0-preview2 | 2,730 | 10/27/2025 | |
| 0.8.0-preview1 | 207 | 10/27/2025 | |
| 0.7.26 | 14,290 | 10/5/2025 | |
| 0.7.23 | 3,514 | 6/23/2025 | |
| 0.7.18 | 3,696 | 5/8/2025 | |
| 0.7.15 | 4,936 | 4/18/2025 | |
| 0.7.6 | 1,767 | 2/5/2025 | |
| 0.7.4 | 478 | 1/27/2025 | |
| 0.7.3 | 185 | 1/26/2025 | |
| 0.7.1 | 205 | 1/23/2025 | |
| 0.7.0 | 233 | 1/20/2025 | |
| 0.6.3 | 216 | 1/19/2025 | |
| 0.6.2 | 177 | 1/19/2025 | |
| 0.6.1 | 179 | 1/19/2025 | 0.6.1 is deprecated because it has critical bugs. |
| 0.6.0 | 176 | 1/18/2025 |
PeachPDF.PdfSharpCore is a partial port of PdfSharp.Xamarin for .NET Core Additionally MigraDoc has been ported as well (from version 1.32)