PdfSharpCore 1.3.64
See the version list below for details.
dotnet add package PdfSharpCore --version 1.3.64
NuGet\Install-Package PdfSharpCore -Version 1.3.64
<PackageReference Include="PdfSharpCore" Version="1.3.64" />
paket add PdfSharpCore --version 1.3.64
#r "nuget: PdfSharpCore, 1.3.64"
// Install PdfSharpCore as a Cake Addin #addin nuget:?package=PdfSharpCore&version=1.3.64 // Install PdfSharpCore as a Cake Tool #tool nuget:?package=PdfSharpCore&version=1.3.64
PdfSharpCore
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 SixLabors.ImageSharp and Fonts support with SixLabors.Fonts.
Table of Contents
Example
The following code snippet creates a simple PDF-file with the text 'Hello World!'. The code is written for a .NET 6 console app with top level statements.
using PdfSharpCore.Drawing;
using PdfSharpCore.Fonts;
using PdfSharpCore.Pdf;
using 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");
Contributing
We appreciate feedback and contribution to this repo!
License
This software is released under the MIT License. See the LICENSE file for more info.
PdfSharpCore relies on the following projects, that are not under the MIT license:
- SixLabors.ImageSharp and SixLabors.Fonts
- SixLabors.ImageSharp and SixLabors.Fonts, libraries which PdfSharpCore relies upon, are licensed under Apache 2.0 when distributed as part of PdfSharpCore. The SixLabors.ImageSharp license covers all other usage, see https://github.com/SixLabors/ImageSharp/blob/master/LICENSE
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- SharpZipLib (>= 1.3.3)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SixLabors.ImageSharp (>= 1.0.4)
-
.NETStandard 2.0
- SharpZipLib (>= 1.3.3)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SixLabors.ImageSharp (>= 1.0.4)
-
net5.0
- SharpZipLib (>= 1.3.3)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SixLabors.ImageSharp (>= 1.0.4)
-
net6.0
- SharpZipLib (>= 1.3.3)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SixLabors.ImageSharp (>= 1.0.4)
-
net7.0
- SharpZipLib (>= 1.3.3)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SixLabors.ImageSharp (>= 1.0.4)
-
net8.0
- SharpZipLib (>= 1.3.3)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SixLabors.ImageSharp (>= 1.0.4)
NuGet packages (80)
Showing the top 5 NuGet packages that depend on PdfSharpCore:
Package | Downloads |
---|---|
PdfSharpCore.Charting
PdfSharpCore.Charting for .NET Core PdfSharpCore.Charting was ported from PdfSharp |
|
MigraDocCore.DocumentObjectModel
MigraDocCore.DocumentObjectModel for .NET Core MigraDocCore.DocumentObjectModel was ported from MigraDoc version 1.32 |
|
MigraDocCore.Rendering
MigraDocCore.Rendering for .NET Core MigraDocCore.Rendering was ported from MigraDoc version 1.32 |
|
HtmlRendererCore.PdfSharp
HtmlRendererCore is a partial port of HtmlRenderer for .NET Core. |
|
Polybioz.HtmlRenderer.PdfSharp.Core
HtmlRenderer.PdfSharp.Core is a partial port of HtmlRenderer.PdfSharp for .NET Core |
GitHub repositories (9)
Showing the top 5 popular GitHub repositories that depend on PdfSharpCore:
Repository | Stars |
---|---|
Readarr/Readarr
Book Manager and Automation (Sonarr for Ebooks)
|
|
ZeusAutomacao/DFe.NET
Biblioteca para Geração de NFe(2.0, 3.10 e 4.0) e NFCe(3.10 e 4.0) e consumo dos serviços necessários à sua manutenção, conforme descritos em http://www.nfe.fazenda.gov.br/portal/principal.aspx
|
|
Azure-Samples/azure-search-openai-demo-csharp
A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
|
|
NickvisionApps/Denaro
Manage your personal finances
|
|
dorisoy/Dorisoy.Pan
Dorisoy.Pan 是基于.net core8 的跨平台文档管理系统,使用 MS SQL 2012 / MySql8.0(或更高版本)后端数据库,您可以在 Windows、Linux 或 Mac 上运行它,项目中的所有方法都是异步的,支持令牌基身份验证,项目体系结构遵循著名的软件模式和最佳安全实践。源代码是完全可定制的,热插拔且清晰的体系结构,使开发定制功能和遵循任何业务需求变得容易。 系统使用最新的 Microsoft 技术,高性能稳定性和安全性
|
Version | Downloads | Last updated |
---|---|---|
1.3.65 | 489,968 | 7/13/2024 |
1.3.64 | 2,323 | 7/12/2024 |
1.3.63 | 1,414,988 | 1/17/2024 |
1.3.62 | 735,674 | 9/27/2023 |
1.3.61 | 1,870 | 9/27/2023 |
1.3.60 | 295,430 | 8/26/2023 |
1.3.59 | 1,965 | 8/26/2023 |
1.3.58 | 1,934 | 8/26/2023 |
1.3.57 | 640,923 | 6/13/2023 |
1.3.56 | 632,699 | 4/19/2023 |
1.3.55 | 2,428 | 4/19/2023 |
1.3.54 | 5,925 | 4/18/2023 |
1.3.53 | 2,419 | 4/18/2023 |
1.3.52 | 2,890 | 4/18/2023 |
1.3.51 | 2,329 | 4/18/2023 |
1.3.50 | 2,488 | 4/18/2023 |
1.3.49 | 86,826 | 4/5/2023 |
1.3.48 | 2,295 | 4/5/2023 |
1.3.47 | 517,340 | 2/14/2023 |
1.3.46 | 2,600 | 2/14/2023 |
1.3.45 | 147,412 | 1/26/2023 |
1.3.44 | 2,626 | 1/26/2023 |
1.3.43 | 633,783 | 12/5/2022 |
1.3.42 | 2,778 | 12/5/2022 |
1.3.41 | 422,343 | 10/26/2022 |
1.3.40 | 294,261 | 9/22/2022 |
1.3.39 | 86,015 | 9/13/2022 |
1.3.38 | 152,673 | 8/31/2022 |
1.3.37 | 3,233 | 8/31/2022 |
1.3.36 | 3,259 | 8/31/2022 |
1.3.35 | 3,169 | 8/31/2022 |
1.3.34 | 3,100 | 8/31/2022 |
1.3.33 | 3,282 | 8/31/2022 |
1.3.32 | 740,542 | 6/8/2022 |
1.3.31 | 12,400 | 6/7/2022 |
1.3.30 | 16,327 | 6/3/2022 |
1.3.29 | 3,263 | 6/3/2022 |
1.3.28 | 3,500 | 6/3/2022 |
1.3.27 | 21,758 | 6/2/2022 |
1.3.26 | 3,261 | 6/2/2022 |
1.3.25 | 3,226 | 6/2/2022 |
1.3.24 | 56,125 | 5/31/2022 |
1.3.23 | 12,881 | 5/30/2022 |
1.3.22 | 3,274 | 5/30/2022 |
1.3.21 | 7,412 | 5/30/2022 |
1.3.20 | 3,396 | 5/30/2022 |
1.3.19 | 19,789 | 5/25/2022 |
1.3.18 | 192,061 | 4/28/2022 |
1.3.17 | 27,447 | 4/25/2022 |
1.3.16 | 442,898 | 4/5/2022 |
1.3.15 | 106,198 | 3/30/2022 |
1.3.14 | 203,833 | 3/15/2022 |
1.3.13 | 103,648 | 3/8/2022 |
1.3.12 | 231,972 | 2/9/2022 |
1.3.11 | 243,880 | 1/21/2022 |
1.3.10 | 425,002 | 12/16/2021 |
1.3.9 | 225,074 | 11/11/2021 |
1.3.8 | 114,688 | 10/27/2021 |
1.3.7 | 211,943 | 9/29/2021 |
1.3.6 | 27,364 | 9/22/2021 |
1.3.5 | 8,677 | 9/21/2021 |
1.3.4 | 12,604 | 9/17/2021 |
1.3.3 | 2,987 | 9/17/2021 |
1.3.2 | 491,132 | 9/16/2021 |
1.3.1 | 11,213 | 9/15/2021 |
1.2.20 | 33,883 | 9/13/2021 |
1.2.19 | 32,669 | 9/7/2021 |
1.2.18 | 13,603 | 9/7/2021 |
1.2.17 | 348,230 | 6/7/2021 |
1.2.16 | 510,490 | 3/12/2021 |
1.2.15 | 234,101 | 3/5/2021 |
1.2.14 | 1,973 | 3/5/2021 |
1.2.13 | 105,463 | 3/3/2021 |
1.2.12 | 79,936 | 2/15/2021 |
1.2.11 | 410,459 | 1/8/2021 |
1.2.10 | 191,816 | 12/2/2020 |
1.2.9 | 31,724 | 11/23/2020 |
1.2.8 | 151,607 | 10/27/2020 |
1.2.6 | 468,718 | 8/27/2020 |
1.2.5 | 91,598 | 8/14/2020 |
1.2.4 | 303,000 | 8/7/2020 |
1.2.3 | 1,731 | 8/7/2020 |
1.2.2 | 1,691 | 8/7/2020 |
1.2.1 | 71,323 | 7/27/2020 |
1.2.0 | 117,396 | 6/25/2020 |
1.1.26 | 112,081 | 5/22/2020 |
1.1.25 | 74,446 | 5/4/2020 |
1.1.24 | 61,798 | 4/14/2020 |
1.1.23 | 55,582 | 3/30/2020 |
1.1.22 | 9,387 | 3/25/2020 |
1.1.21 | 647,700 | 1/26/2020 |
1.1.20 | 18,385 | 1/10/2020 |
1.1.19 | 3,270 | 1/9/2020 |
1.1.18 | 393,525 | 10/16/2019 |
1.1.17 | 1,813 | 10/16/2019 |
1.1.16 | 68,723 | 9/18/2019 |
1.1.15 | 2,398 | 9/16/2019 |
1.1.12 | 210,423 | 7/24/2019 |
1.1.11 | 73,182 | 7/13/2019 |
1.1.10 | 62,671 | 6/7/2019 |
1.1.9 | 1,984 | 6/5/2019 |
1.1.8 | 8,417 | 5/24/2019 |
1.1.7 | 2,205 | 5/24/2019 |
1.1.6 | 1,827 | 5/24/2019 |
1.1.5 | 1,791 | 5/23/2019 |
1.1.4 | 8,229 | 5/22/2019 |
1.1.3 | 2,150 | 5/22/2019 |
1.1.1 | 2,041 | 5/22/2019 |
1.1.0 | 48,121 | 3/31/2019 |
1.0.9 | 2,299 | 3/27/2019 |
1.0.7 | 200,331 | 1/21/2019 |
1.0.6 | 13,784 | 11/3/2018 |
1.0.4 | 51,334 | 8/31/2018 |
1.0.3.4 | 4,144 | 8/18/2018 |
1.0.3.3 | 2,689 | 8/13/2018 |
1.0.3.1 | 2,378 | 8/8/2018 |
1.0.3 | 8,567 | 6/18/2018 |
1.0.2 | 3,881 | 6/11/2018 |
1.0.1 | 9,907 | 1/23/2018 |
1.0.0 | 187,221 | 6/18/2017 |
Fix binary commit: https://github.com/ststeiger/PdfSharpCore/issues/328