{"id":14968292,"url":"https://github.com/ststeiger/pdfsharpcore","last_synced_at":"2025-10-20T11:05:44.745Z","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":1174,"open_issues_count":204,"forks_count":257,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-10-01T09:28:42.056Z","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-09-23T10:02:32.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,"purl":"pkg:github/ststeiger/PdfSharpCore","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ststeiger%2FPdfSharpCore/sbom","scorecard":{"id":855866,"data":{"date":"2025-08-11","repo":{"name":"github.com/ststeiger/PdfSharpCore","commit":"d6ac8b092129a4f797365bbbf3eea2723d6c3ebd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":8,"reason":"Found 12/14 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/ststeiger/PdfSharpCore/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/ststeiger/PdfSharpCore/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/ststeiger/PdfSharpCore/build.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T23:53:18.325Z","repository_id":22009426,"created_at":"2025-08-23T23:53:18.325Z","updated_at":"2025-08-23T23:53:18.325Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280080707,"owners_count":26268354,"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","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09-24T13:39:39.947Z","updated_at":"2025-10-20T11:05:44.727Z","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":[],"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"}