![]() |
VOOZH | about |
dotnet add package MigraDocCore.Rendering --version 1.3.67
NuGet\Install-Package MigraDocCore.Rendering -Version 1.3.67
<PackageReference Include="MigraDocCore.Rendering" Version="1.3.67" />
<PackageVersion Include="MigraDocCore.Rendering" Version="1.3.67" />Directory.Packages.props
<PackageReference Include="MigraDocCore.Rendering" />Project file
paket add MigraDocCore.Rendering --version 1.3.67
#r "nuget: MigraDocCore.Rendering, 1.3.67"
#:package MigraDocCore.Rendering@1.3.67
#addin nuget:?package=MigraDocCore.Rendering&version=1.3.67Install as a Cake Addin
#tool nuget:?package=MigraDocCore.Rendering&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 MigraDocCore.Rendering:
| Package | Downloads |
|---|---|
|
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. |
|
|
InvoicerNETCore
This client library enables easy generation of PDF invoices. See https://github.com/CraigBanach/InvoiceGenerator for further information. |
|
|
Anacosme.Extensions.PdfDocuments
Package Description |
|
|
MigraDocCore.Extensions.Markdown
Adds support for Markdown in MigraDocCore documents using Markdig, ported from the MigraDoc.Extensions library by Vertigo Ventures. |
Showing the top 1 popular GitHub repositories that depend on MigraDocCore.Rendering:
| Repository | Stars |
|---|---|
|
surveysolutions/surveysolutions
Survey Solutions is a survey management and data collection system developed by the World Bank.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.67 | 622,181 | 4/3/2025 |
| 1.3.66 | 5,676 | 4/3/2025 |
| 1.3.65 | 426,218 | 7/13/2024 |
| 1.3.64 | 5,418 | 7/12/2024 |
| 1.3.63 | 354,094 | 1/17/2024 |
| 1.3.62 | 119,086 | 9/27/2023 |
| 1.3.61 | 5,463 | 9/27/2023 |
| 1.3.60 | 66,520 | 8/26/2023 |
| 1.3.59 | 5,502 | 8/26/2023 |
| 1.3.58 | 5,472 | 8/26/2023 |
| 1.3.57 | 75,967 | 6/13/2023 |
| 1.3.56 | 88,176 | 4/19/2023 |
| 1.3.55 | 5,703 | 4/19/2023 |
| 1.3.54 | 5,732 | 4/18/2023 |
| 1.3.53 | 5,799 | 4/18/2023 |
| 1.3.52 | 5,671 | 4/18/2023 |
| 1.3.51 | 5,952 | 4/18/2023 |
| 1.3.50 | 6,015 | 4/18/2023 |
| 1.3.49 | 46,185 | 4/5/2023 |
| 1.3.48 | 6,052 | 4/5/2023 |
Merge pull request #450 from raul-ruiz-gallardo/feature/text-formatter-size-calculation
Feature/text formatter size calculation and custom alignments