PdfSharpCore 1.3.65
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
No packages depend on PdfSharpCore.
Update Dependencies
.NET Core 3.1
- SharpZipLib (>= 1.4.2)
- SixLabors.ImageSharp (>= 1.0.4)
- SixLabors.Fonts (>= 1.0.0-beta17)
.NET Standard 2.0
- SixLabors.ImageSharp (>= 1.0.4)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SharpZipLib (>= 1.4.2)
.NET 8.0
- SixLabors.ImageSharp (>= 1.0.4)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SharpZipLib (>= 1.4.2)
.NET 7.0
- SixLabors.ImageSharp (>= 1.0.4)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SharpZipLib (>= 1.4.2)
.NET 6.0
- SixLabors.Fonts (>= 1.0.0-beta17)
- SharpZipLib (>= 1.4.2)
- SixLabors.ImageSharp (>= 1.0.4)
.NET 5.0
- SixLabors.ImageSharp (>= 1.0.4)
- SixLabors.Fonts (>= 1.0.0-beta17)
- SharpZipLib (>= 1.4.2)
Version | Downloads | Last updated |
---|---|---|
1.3.65 | 4 | 07/14/2024 |
1.3.64 | 5 | 07/13/2024 |
1.3.63 | 8 | 02/09/2024 |
1.3.62 | 7 | 12/07/2023 |
1.3.61 | 5 | 12/07/2023 |
1.3.60 | 6 | 12/07/2023 |
1.3.59 | 5 | 12/07/2023 |
1.3.58 | 6 | 12/07/2023 |
1.3.57 | 5 | 12/07/2023 |
1.3.56 | 7 | 10/19/2023 |
1.3.55 | 11 | 12/08/2023 |
1.3.54 | 7 | 01/07/2024 |
1.3.53 | 5 | 12/07/2023 |
1.3.52 | 8 | 12/07/2023 |
1.3.51 | 5 | 12/07/2023 |
1.3.50 | 5 | 12/07/2023 |
1.3.49 | 8 | 12/07/2023 |
1.3.48 | 5 | 12/07/2023 |
1.3.47 | 5 | 12/07/2023 |
1.3.46 | 7 | 12/07/2023 |
1.3.45 | 5 | 12/07/2023 |
1.3.44 | 5 | 12/07/2023 |
1.3.43 | 7 | 12/07/2023 |
1.3.42 | 5 | 12/07/2023 |
1.3.41 | 5 | 12/09/2023 |
1.3.40 | 4 | 12/07/2023 |
1.3.39 | 7 | 12/07/2023 |
1.3.38 | 5 | 12/07/2023 |
1.3.37 | 6 | 12/07/2023 |
1.3.36 | 6 | 12/07/2023 |
1.3.35 | 5 | 12/14/2023 |
1.3.34 | 5 | 12/07/2023 |
1.3.33 | 6 | 12/07/2023 |
1.3.32 | 7 | 12/07/2023 |
1.3.31 | 5 | 12/07/2023 |
1.3.30 | 7 | 12/07/2023 |
1.3.29 | 7 | 12/07/2023 |
1.3.28 | 6 | 12/07/2023 |
1.3.27 | 5 | 12/07/2023 |
1.3.26 | 5 | 12/07/2023 |
1.3.25 | 5 | 12/07/2023 |
1.3.24 | 6 | 12/18/2023 |
1.3.23 | 6 | 12/07/2023 |
1.3.22 | 7 | 12/07/2023 |
1.3.21 | 5 | 12/07/2023 |
1.3.20 | 9 | 12/07/2023 |
1.3.19 | 4 | 12/14/2023 |
1.3.18 | 9 | 12/07/2023 |
1.3.17 | 6 | 12/07/2023 |
1.3.16 | 5 | 12/07/2023 |
1.3.15 | 6 | 12/07/2023 |
1.3.14 | 10 | 12/07/2023 |
1.3.13 | 4 | 12/07/2023 |
1.3.12 | 4 | 12/18/2023 |
1.3.11 | 7 | 12/07/2023 |
1.3.10 | 5 | 12/07/2023 |
1.3.9 | 7 | 12/07/2023 |
1.3.8 | 5 | 12/07/2023 |
1.3.7 | 4 | 12/07/2023 |
1.3.6 | 5 | 12/07/2023 |
1.3.5 | 5 | 12/07/2023 |
1.3.4 | 11 | 12/07/2023 |
1.3.3 | 9 | 12/07/2023 |
1.3.2 | 5 | 12/07/2023 |
1.3.1 | 5 | 12/07/2023 |
1.2.20 | 5 | 12/07/2023 |
1.2.19 | 6 | 12/07/2023 |
1.2.18 | 6 | 12/07/2023 |
1.2.17 | 6 | 12/07/2023 |
1.2.16 | 7 | 12/07/2023 |
1.2.15 | 2 | 01/13/2024 |
1.2.14 | 6 | 12/07/2023 |
1.2.13 | 7 | 12/07/2023 |
1.2.12 | 5 | 12/07/2023 |
1.2.11 | 8 | 12/07/2023 |
1.2.10 | 4 | 12/07/2023 |
1.2.9 | 8 | 12/09/2023 |
1.2.8 | 6 | 12/07/2023 |
1.2.6 | 4 | 12/20/2023 |
1.2.5 | 3 | 12/07/2023 |
1.2.4 | 6 | 12/07/2023 |
1.2.3 | 5 | 12/07/2023 |
1.2.2 | 4 | 12/14/2023 |
1.2.1 | 5 | 12/07/2023 |
1.2.0 | 4 | 12/15/2023 |
1.1.26 | 6 | 12/07/2023 |
1.1.25 | 7 | 12/07/2023 |
1.1.24 | 5 | 12/07/2023 |
1.1.23 | 6 | 12/07/2023 |
1.1.22 | 5 | 12/07/2023 |
1.1.21 | 5 | 12/07/2023 |
1.1.20 | 7 | 12/07/2023 |
1.1.19 | 7 | 12/07/2023 |
1.1.18 | 9 | 12/07/2023 |
1.1.17 | 6 | 12/07/2023 |
1.1.16 | 7 | 12/07/2023 |
1.1.15 | 8 | 12/07/2023 |
1.1.12 | 5 | 12/07/2023 |
1.1.11 | 6 | 12/14/2023 |
1.1.10 | 6 | 12/07/2023 |
1.1.9 | 7 | 12/07/2023 |
1.1.8 | 5 | 12/07/2023 |
1.1.7 | 4 | 12/07/2023 |
1.1.6 | 5 | 12/15/2023 |
1.1.5 | 6 | 12/07/2023 |
1.1.4 | 5 | 12/07/2023 |
1.1.3 | 5 | 12/15/2023 |
1.1.1 | 5 | 12/07/2023 |
1.1.0 | 4 | 12/18/2023 |
1.0.9 | 7 | 12/07/2023 |
1.0.7 | 7 | 12/07/2023 |
1.0.6 | 7 | 12/07/2023 |
1.0.4 | 6 | 12/07/2023 |
1.0.3.4 | 5 | 12/07/2023 |
1.0.3.3 | 5 | 12/07/2023 |
1.0.3.1 | 7 | 12/07/2023 |
1.0.3 | 6 | 12/07/2023 |
1.0.2 | 6 | 12/07/2023 |
1.0.1 | 4 | 12/07/2023 |
1.0.0 | 6 | 12/07/2023 |