{"id":19099981,"url":"https://github.com/ststeiger/PdfSharpCore","last_synced_at":"2025-04-18T17:32:23.720Z","repository":{"id":22009426,"uuid":"88624970","full_name":"ststeiger/PdfSharpCore","owner":"ststeiger","description":"Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)","archived":false,"fork":false,"pushed_at":"2025-04-03T20:41:53.000Z","size":2291,"stargazers_count":1123,"open_issues_count":192,"forks_count":246,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-04-11T20:43:38.638Z","etag":null,"topics":["alpha","csharp","imagesharp","netcore2","netstandard20","pdf","pdfsharp","xamarin"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ststeiger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-04-18T12:55:22.000Z","updated_at":"2025-04-09T11:08:00.000Z","dependencies_parsed_at":"2023-01-14T13:15:48.594Z","dependency_job_id":"de15b1b2-c05b-4a46-ba79-a423ae085400","html_url":"https://github.com/ststeiger/PdfSharpCore","commit_stats":{"total_commits":230,"total_committers":78,"mean_commits":2.948717948717949,"dds":0.8739130434782609,"last_synced_commit":"49db5401df717ff880cbbf78c73aa7bd5d4886ef"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2FPdfSharpCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2FPdfSharpCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2FPdfSharpCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2FPdfSharpCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ststeiger","download_url":"https://codeload.github.com/ststeiger/PdfSharpCore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975351,"owners_count":21192217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpha","csharp","imagesharp","netcore2","netstandard20","pdf","pdfsharp","xamarin"],"created_at":"2024-11-09T03:52:24.985Z","updated_at":"2025-04-18T17:32:22.995Z","avatar_url":"https://github.com/ststeiger.png","language":"C#","readme":"# PdfSharpCore\n\n[![NuGet Version](https://img.shields.io/nuget/v/PdfSharpCore.svg)](https://www.nuget.org/packages/PdfSharpCore/)\n[![CI](https://github.com/ststeiger/PdfSharpCore/actions/workflows/build.yml/badge.svg)](https://github.com/ststeiger/PdfSharpCore/actions/workflows/build.yml)\n[![codecov.io](https://codecov.io/github/ststeiger/PdfSharpCore/coverage.svg?branch=master)](https://codecov.io/github/ststeiger/PdfSharpCore?branch=master)\n\n**PdfSharpCore** is a partial port of [PdfSharp.Xamarin](https://github.com/roceh/PdfSharp.Xamarin/) for .NET Standard.\nAdditionally MigraDoc has been ported as well (from version 1.32).\nImage support has been implemented with [SixLabors.ImageSharp](https://github.com/JimBobSquarePants/ImageSharp/) and Fonts support with [SixLabors.Fonts](https://github.com/SixLabors/Fonts).\n\n\n## Table of Contents\n\n- [Documentation](docs/index.md)\n- [Example](#example)\n- [Contributing](#contributing)\n- [License](#license)\n\n\n## Example\n\nThe following code snippet creates a simple PDF-file with the text 'Hello World!'.\nThe code is written for a .NET 6 console app with top level statements.\n\n```csharp\nusing PdfSharpCore.Drawing;\nusing PdfSharpCore.Fonts;\nusing PdfSharpCore.Pdf;\nusing PdfSharpCore.Utils;\n\nGlobalFontSettings.FontResolver = new FontResolver();\n\nvar document = new PdfDocument();\nvar page = document.AddPage();\n\nvar gfx = XGraphics.FromPdfPage(page);\nvar font = new XFont(\"Arial\", 20, XFontStyle.Bold);\n\nvar textColor = XBrushes.Black;\nvar layout = new XRect(20, 20, page.Width, page.Height);\nvar format = XStringFormats.Center;\n\ngfx.DrawString(\"Hello World!\", font, textColor, layout, format);\n\ndocument.Save(\"helloworld.pdf\");\n```\n\n## Contributing\n\nWe appreciate feedback and contribution to this repo!\n\n\n## License\n\nThis software is released under the MIT License. See the [LICENSE](LICENCE.md) file for more info.\n\nPdfSharpCore relies on the following projects, that are not under the MIT license:\n\n* *SixLabors.ImageSharp* and *SixLabors.Fonts*\n  * 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","funding_links":[],"categories":["xamarin"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fststeiger%2FPdfSharpCore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fststeiger%2FPdfSharpCore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fststeiger%2FPdfSharpCore/lists"}