![]() |
VOOZH | about |
dotnet add package PdfSharpCore --version 1.3.67
NuGet\Install-Package PdfSharpCore -Version 1.3.67
<PackageReference Include="PdfSharpCore" Version="1.3.67" />
<PackageVersion Include="PdfSharpCore" Version="1.3.67" />Directory.Packages.props
<PackageReference Include="PdfSharpCore" />Project file
paket add PdfSharpCore --version 1.3.67
#r "nuget: PdfSharpCore, 1.3.67"
#:package PdfSharpCore@1.3.67
#addin nuget:?package=PdfSharpCore&version=1.3.67Install as a Cake Addin
#tool nuget:?package=PdfSharpCore&version=1.3.67Install as a Cake Tool
👁 NuGet Version
👁 CI
👁 codecov.io
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.
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");
We appreciate feedback and contribution to this repo!
This software is released under the MIT License. See the file for more info.
PdfSharpCore relies on the following projects, that are not under the MIT license:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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 |
|
|
DH.PdfSharpCore
DH框架的Pdf处理库。基于https://github.com/bigcat-2016/HtmlRenderCore.PdfSharpCore |
|
|
HtmlRendererCore.PdfSharp
HtmlRendererCore is a partial port of HtmlRenderer for .NET Core. |
Showing the top 10 popular GitHub repositories that depend on PdfSharpCore:
| Repository | Stars |
|---|---|
|
Readarr/Readarr
Book Manager and Automation (Sonarr for Ebooks)
|
|
|
SteveTheKiller/KillerPDF
PDF editor for Windows. Install or run portable. GPLv3. No account, no subscription, no telemetry.
|
|
|
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
|
|
|
Hercules-NET/ZeusFiscal
A Principal Biblioteca em C# para Emissão e Impressão de NFe, NFCe, MDF-e e CT-e
|
|
|
furesoft/Slithin
A management application for the remarkable tablet
|
|
|
AntonyCorbett/OnlyT
Meeting Timer
|
|
|
Azure-Samples/communication-services-AI-customer-service-sample
A sample app for the customer support center running in Azure, using Azure Communication Services and Azure OpenAI for text and voice bots.
|
|
|
surveysolutions/surveysolutions
Survey Solutions is a survey management and data collection system developed by the World Bank.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.67 | 5,161,629 | 4/3/2025 |
| 1.3.66 | 24,766 | 4/3/2025 |
| 1.3.65 | 4,479,658 | 7/13/2024 |
| 1.3.64 | 20,609 | 7/12/2024 |
| 1.3.63 | 3,625,848 | 1/17/2024 |
| 1.3.62 | 1,303,432 | 9/27/2023 |
| 1.3.61 | 13,007 | 9/27/2023 |
| 1.3.60 | 416,919 | 8/26/2023 |
| 1.3.59 | 13,312 | 8/26/2023 |
| 1.3.58 | 12,838 | 8/26/2023 |
| 1.3.57 | 1,091,141 | 6/13/2023 |
| 1.3.56 | 1,077,178 | 4/19/2023 |
| 1.3.55 | 13,394 | 4/19/2023 |
| 1.3.54 | 28,468 | 4/18/2023 |
| 1.3.53 | 14,686 | 4/18/2023 |
| 1.3.52 | 22,168 | 4/18/2023 |
| 1.3.51 | 21,063 | 4/18/2023 |
| 1.3.50 | 18,008 | 4/18/2023 |
| 1.3.49 | 141,774 | 4/5/2023 |
| 1.3.48 | 15,533 | 4/5/2023 |
Merge pull request #450 from raul-ruiz-gallardo/feature/text-formatter-size-calculation
Feature/text formatter size calculation and custom alignments