# fraserxu/electron-pdf

📄 A command line tool to generate PDF from URL, HTML or Markdown files.

Repository: https://github.com/fraserxu/electron-pdf
Canonical: https://ross.abutalabs.com/products/electron-pdf
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-02-12T19:52:35+00:00

## Health v2 (maintenance only)
Score: 53/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 67, release rhythm 8, longevity 100
- inputs: {"age_days": 4032, "days_push": 202, "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 1292, forks 141 (observed 2026-08-28T04:04:16.078013+00:00)

## What it is
Electron-PDF is a command-line tool and Node.js library that uses Electron's Chromium renderer to generate PDF files from URLs, HTML, or Markdown sources. It supports rendering options, event hooks, in-memory buffers, and multiple export jobs.

## Use cases
- generate pdf from a url
- convert html to pdf from the command line
- render markdown files as pdf
- batch export multiple pages to pdf
- generate pdf reports from web pages in node.js
- headless pdf rendering on a server

## When to choose
- you need Chromium-faithful rendering of HTML/CSS to PDF
- you want a simple CLI or Node.js API for PDF export
- you need to render modern web content (JS-heavy pages) to PDF

## When to avoid
- you need lightweight PDF generation without Electron/Chromium overhead
- you only need to manipulate existing PDFs rather than create them
- you cannot install a graphical stack or xvfb on your Linux server

## Facets
- artifact type: cli-tool
- maturity: active
- function: pdf, cli, templating, markdown
- domain: pdf, developer-tools
- platform: cli, windows
- tags: electron, html-to-pdf, pdf-generation, headless-browser, rendering, command-line, automation, nodejs, linux, macos, docker

## Member repositories
- fraserxu/electron-pdf (main) score 53

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.078013+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-30T04:54:44.123109+00:00, confidence not recorded.
  - readme: https://github.com/fraserxu/electron-pdf (fetched 2026-08-28T04:04:16.078013+00:00, sha 37c3038c3dae)
  - registry_npm: https://registry.npmjs.org/electron-pdf (fetched 2026-08-29T12:11:25.042842+00:00, sha b3ceacdb870a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
