PdfSharpCore 1.3.67

PdfSharpCore

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.

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

Showing the top 20 packages that depend on PdfSharpCore.

Packages Downloads
Ding.HttpHelper
Ding.HttpHelper是基于.net core平台开发的Http操作框架。
2
Ding.HttpHelper
Ding.HttpHelper是基于.net core平台开发的Http操作框架。
1

Merge pull request #450 from raul-ruiz-gallardo/feature/text-formatter-size-calculation Feature/text formatter size calculation and custom alignments

.NET Core 3.1

.NET 5.0

.NET 6.0

.NET 7.0

.NET 8.0

.NET Standard 2.0

Version Downloads Last updated
1.3.67 7 2025/6/6
1.3.66 2 2025/8/19
1.3.65 3 2025/8/19
1.3.64 3 2025/8/19
1.3.63 3 2025/8/19
1.3.62 3 2025/8/19
1.3.61 4 2025/6/10
1.3.60 3 2025/8/19
1.3.59 2 2025/8/19
1.3.58 2 2025/8/19
1.3.57 3 2025/8/19
1.3.56 3 2025/6/10
1.3.55 3 2025/8/19
1.3.54 2 2025/8/19
1.3.53 4 2025/6/10
1.3.52 3 2025/8/19
1.3.51 3 2025/8/19
1.3.50 3 2025/8/19
1.3.49 2 2025/8/19
1.3.48 3 2025/8/19
1.3.47 3 2025/8/19
1.3.46 4 2025/6/10
1.3.45 3 2025/8/19
1.3.44 3 2025/8/19
1.3.43 3 2025/8/19
1.3.42 3 2025/8/19
1.3.41 2 2025/8/19
1.3.40 4 2025/6/10
1.3.39 3 2025/8/19
1.3.38 3 2025/8/19
1.3.37 3 2025/8/19
1.3.36 3 2025/8/19
1.3.35 2 2025/8/19
1.3.34 2 2025/8/19
1.3.33 3 2025/8/19
1.3.32 3 2025/8/19
1.3.31 4 2025/6/10
1.3.30 3 2025/8/19
1.3.29 2 2025/8/19
1.3.28 3 2025/8/19
1.3.27 3 2025/8/19
1.3.26 2 2025/8/19
1.3.25 3 2025/8/19
1.3.24 2 2025/8/19
1.3.23 2 2025/8/19
1.3.22 4 2025/6/10
1.3.21 2 2025/8/19
1.3.20 3 2025/8/19
1.3.19 3 2025/8/19
1.3.18 3 2025/8/19
1.3.17 3 2025/6/10
1.3.16 3 2025/8/19
1.3.15 3 2025/8/19
1.3.14 3 2025/8/19
1.3.13 3 2025/8/19
1.3.12 2 2025/8/19
1.3.11 3 2025/8/19
1.3.10 3 2025/8/19
1.3.9 3 2025/6/10
1.3.8 4 2025/6/10
1.3.7 3 2025/6/10
1.3.6 3 2025/6/10
1.3.5 3 2025/6/10
1.3.4 3 2025/6/10
1.3.3 3 2025/6/10
1.3.2 4 2025/6/10
1.3.1 3 2025/6/10
1.2.20 3 2025/8/19
1.2.19 3 2025/8/19
1.2.18 2 2025/8/19
1.2.17 3 2025/8/19
1.2.16 3 2025/8/19
1.2.15 2 2025/8/19
1.2.14 3 2025/8/19
1.2.13 4 2025/6/10
1.2.12 2 2025/8/19
1.2.11 4 2025/6/10
1.2.10 3 2025/8/19
1.2.9 3 2025/6/10
1.2.8 3 2025/6/10
1.2.6 4 2025/6/10
1.2.5 3 2025/6/10
1.2.4 3 2025/6/10
1.2.3 4 2025/6/10
1.2.2 4 2025/6/10
1.2.1 3 2025/6/10
1.2.0 3 2025/6/10
1.1.26 3 2025/8/19
1.1.25 3 2025/8/19
1.1.24 3 2025/6/10
1.1.23 2 2025/8/19
1.1.22 3 2025/8/19
1.1.21 2 2025/8/19
1.1.20 3 2025/8/19
1.1.19 3 2025/8/19
1.1.18 3 2025/8/19
1.1.17 3 2025/8/19
1.1.16 3 2025/8/19
1.1.15 3 2025/6/10
1.1.12 3 2025/6/10
1.1.11 4 2025/6/10
1.1.10 3 2025/8/19
1.1.9 3 2025/8/19
1.1.8 4 2025/6/10
1.1.7 3 2025/6/10
1.1.6 3 2025/6/10
1.1.5 3 2025/6/10
1.1.4 3 2025/6/10
1.1.3 3 2025/6/10
1.1.1 2 2025/8/20
1.1.0 3 2025/6/10
1.0.9 2 2025/6/10
1.0.7 3 2025/6/10
1.0.6 3 2025/6/10
1.0.4 3 2025/6/10
1.0.3.4 4 2025/6/10
1.0.3.3 4 2025/6/10
1.0.3.1 3 2025/6/10
1.0.3 2 2025/6/10
1.0.2 3 2025/6/10
1.0.1 3 2025/6/10
1.0.0 3 2025/6/10