# rdvojmoc/DinkToPdf

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.

Repository: https://github.com/rdvojmoc/DinkToPdf
Canonical: https://ross.abutalabs.com/products/dinktopdf
Language: C#
License: MIT
License Family: permissive
Topics: net-standard, wkhtmltopdf, html, pdf, net-core, pdf-converter
Last push: 2020-04-18T23:43:04+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3425, "days_push": 2328, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1195, forks 435 (observed 2026-08-28T04:03:56.827124+00:00)

## What it is
DinkToPdf is a C# .NET Core P/Invoke wrapper around the native wkhtmltopdf library, converting HTML pages or strings into PDF documents using the Webkit rendering engine. It offers basic and thread-synchronized converters suitable for console apps and Kestrel-hosted web applications.

## Use cases
- convert html to pdf in .net core
- generate pdf invoices from html templates
- render web pages as pdf files server-side
- create pdf reports from asp.net core web api
- save html content as pdf with headers and page numbers
- convert url to pdf in c#

## When to choose
- you are on .NET Core/.NET Standard and need HTML-to-PDF conversion
- you want to reuse existing wkhtmltopdf native libraries from C#
- you need a thread-safe converter for a web server via dependency injection

## When to avoid
- you need a pure managed solution without native library dependencies
- you target IIS hosting, which is untested
- you need actively maintained software with recent updates
- you need modern CSS/JavaScript rendering beyond Webkit's capabilities

## Facets
- artifact type: library
- maturity: maintenance
- function: pdf
- domain: pdf, web-development, backend
- platform: cross-platform, dotnet
- tags: wkhtmltopdf, html-to-pdf, net-core, p-invoke, pdf-conversion

## Member repositories
- rdvojmoc/DinkToPdf (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:56.827124+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:22:07.059455+00:00, confidence not recorded.
  - readme: https://github.com/rdvojmoc/DinkToPdf (fetched 2026-08-28T04:03:56.827124+00:00, sha ae18befc3965)
- Data as of 2026-08-30T08:39:29.467469+00:00.
