MigraDocCore.DocumentObjectModel
1.3.65
dotnet add package MigraDocCore.DocumentObjectModel --version 1.3.65
NuGet\Install-Package MigraDocCore.DocumentObjectModel -Version 1.3.65
<PackageReference Include="MigraDocCore.DocumentObjectModel" Version="1.3.65" />
paket add MigraDocCore.DocumentObjectModel --version 1.3.65
#r "nuget: MigraDocCore.DocumentObjectModel, 1.3.65"
// Install MigraDocCore.DocumentObjectModel as a Cake Addin #addin nuget:?package=MigraDocCore.DocumentObjectModel&version=1.3.65 // Install MigraDocCore.DocumentObjectModel as a Cake Tool #tool nuget:?package=MigraDocCore.DocumentObjectModel&version=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
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
- PdfSharpCore (>= 1.3.65)
-
.NETStandard 2.0
- PdfSharpCore (>= 1.3.65)
-
net5.0
- PdfSharpCore (>= 1.3.65)
-
net6.0
- PdfSharpCore (>= 1.3.65)
-
net7.0
- PdfSharpCore (>= 1.3.65)
-
net8.0
- PdfSharpCore (>= 1.3.65)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on MigraDocCore.DocumentObjectModel:
Package | Downloads |
---|---|
MigraDocCore.Rendering
MigraDocCore.Rendering for .NET Core MigraDocCore.Rendering was ported from MigraDoc version 1.32 |
|
InvoicerNETCore
This client library enables easy generation of PDF invoices. See https://github.com/CraigBanach/InvoiceGenerator for further information. |
|
MigraDocCore.Extensions
A MigraDocCore port of the MigraDoc.Extensions library by Vertigo Ventures. |
|
MigraDocCore.Extensions.Html
Adds support for HTML in MigraDocCore documents using HtmlAgilityPack, ported from the MigraDoc.Extensions library by Vertigo Ventures. |
|
MigraDocCore.Extensions.Markdown
Adds support for Markdown in MigraDocCore documents using Markdig, ported from the MigraDoc.Extensions library by Vertigo Ventures. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on MigraDocCore.DocumentObjectModel:
Repository | Stars |
---|---|
APSIMInitiative/ApsimX
ApsimX is the next generation of APSIM
|
Version | Downloads | Last updated |
---|---|---|
1.3.65 | 54,850 | 7/13/2024 |
1.3.64 | 204 | 7/12/2024 |
1.3.63 | 156,732 | 1/17/2024 |
1.3.62 | 84,285 | 9/27/2023 |
1.3.61 | 449 | 9/27/2023 |
1.3.60 | 37,058 | 8/26/2023 |
1.3.59 | 471 | 8/26/2023 |
1.3.58 | 468 | 8/26/2023 |
1.3.57 | 61,073 | 6/13/2023 |
1.3.56 | 51,961 | 4/19/2023 |
1.3.55 | 674 | 4/19/2023 |
1.3.54 | 706 | 4/18/2023 |
1.3.53 | 644 | 4/18/2023 |
1.3.52 | 667 | 4/18/2023 |
1.3.51 | 641 | 4/18/2023 |
1.3.50 | 697 | 4/18/2023 |
1.3.49 | 17,437 | 4/5/2023 |
1.3.48 | 630 | 4/5/2023 |
1.3.47 | 100,030 | 2/14/2023 |
1.3.46 | 794 | 2/14/2023 |
1.3.45 | 22,281 | 1/26/2023 |
1.3.44 | 823 | 1/26/2023 |
1.3.43 | 251,180 | 12/5/2022 |
1.3.42 | 887 | 12/5/2022 |
1.3.41 | 47,759 | 10/26/2022 |
1.3.40 | 47,710 | 9/22/2022 |
1.3.39 | 33,130 | 9/13/2022 |
1.3.38 | 20,666 | 8/31/2022 |
1.3.37 | 1,052 | 8/31/2022 |
1.3.36 | 1,222 | 8/31/2022 |
1.3.35 | 1,079 | 8/31/2022 |
1.3.34 | 1,018 | 8/31/2022 |
1.3.33 | 1,080 | 8/31/2022 |
1.3.32 | 82,542 | 6/8/2022 |
1.3.31 | 4,357 | 6/7/2022 |
1.3.30 | 2,198 | 6/3/2022 |
1.3.29 | 1,146 | 6/3/2022 |
1.3.28 | 1,198 | 6/3/2022 |
1.3.27 | 12,163 | 6/2/2022 |
1.3.26 | 1,160 | 6/2/2022 |
1.3.25 | 1,149 | 6/2/2022 |
1.3.24 | 4,318 | 5/31/2022 |
1.3.23 | 1,707 | 5/30/2022 |
1.3.22 | 1,089 | 5/30/2022 |
1.3.21 | 1,180 | 5/30/2022 |
1.3.20 | 1,185 | 5/30/2022 |
1.3.19 | 3,242 | 5/25/2022 |
1.3.18 | 17,222 | 4/28/2022 |
1.3.17 | 1,492 | 4/25/2022 |
1.3.16 | 46,171 | 4/5/2022 |
1.3.15 | 15,692 | 3/30/2022 |
1.3.14 | 95,045 | 3/10/2022 |
1.3.13 | 10,548 | 3/8/2022 |
1.3.12 | 56,430 | 2/9/2022 |
1.3.11 | 17,721 | 1/21/2022 |
1.3.10 | 123,593 | 12/16/2021 |
1.3.9 | 19,774 | 11/11/2021 |
1.3.8 | 10,655 | 10/27/2021 |
1.3.7 | 15,765 | 9/29/2021 |
1.3.6 | 62,073 | 9/22/2021 |
1.3.5 | 1,971 | 9/21/2021 |
1.3.4 | 4,920 | 9/17/2021 |
1.3.3 | 914 | 9/17/2021 |
1.3.2 | 941 | 9/16/2021 |
1.3.1 | 4,286 | 9/15/2021 |
0.1.3 | 2,058 | 9/7/2021 |
0.1.2 | 9,646 | 8/25/2021 |
0.1.1 | 210,370 | 8/7/2020 |
0.1.0 | 32,210 | 5/10/2020 |
Update Dependencies