Ross ROSS = Recommend OSS · open-source software intelligence for agents

pdfkit/pdfkit

A Ruby gem to transform HTML + CSS into PDFs using the command-line utility wkhtmltopdf observed · 2026-08-28

github.com/pdfkit/pdfkit · Ruby · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 5948
  • days_rel: n/a
  • days_push: 1107
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2940 stars · 418 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

PDFKit is a Ruby gem that converts HTML and CSS into PDF documents by wrapping the wkhtmltopdf command-line utility, which renders HTML via WebKit. It accepts HTML strings, files, or URLs, supports stylesheet injection and wkhtmltopdf options, and includes Rack middleware for on-the-fly PDF generation in Rails apps.

Use cases

  • generate pdf invoices from html templates in rails
  • convert html reports to pdf in ruby
  • render a webpage url as a pdf
  • serve pdf versions of pages via rack middleware
  • create pdfs with custom css stylesheets
  • scrape a website and save it as a pdf with cookies

When to choose

  • you are building a Ruby or Rails app that needs HTML-to-PDF conversion
  • you want simple API wrapping wkhtmltopdf with stylesheet and option support
  • you need middleware to automatically serve .pdf URLs from your Rails app

When to avoid

  • you need a pure-Ruby solution without external binary dependencies
  • wkhtmltopdf is deprecated in your environment and you want a maintained rendering engine like headless Chrome
  • you need pixel-perfect modern CSS support beyond WebKit's rendering
  • you are not working in Ruby

Facets

library · maturity maintenance

pdf templating middleware pdf web-development backend files ruby windows wkhtmltopdf html-to-pdf ruby-gem rails report-generation linux macos web-server

1 source

Member repositories

RepositoryRoleHealth v2
pdfkit/pdfkitmain23

For agents

markdown · JSON · MCP: product_card(name="pdfkit/pdfkit")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem