# marcbachmann/node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.

Repository: https://github.com/marcbachmann/node-html-pdf
Canonical: https://ross.abutalabs.com/products/node-html-pdf
Language: JavaScript
License: MIT
License Family: permissive
Topics: html, pdf, phantomjs, pdf-converter
Archived: true
Last push: 2024-05-15T14:58:10+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4520, "days_push": 840, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3578, forks 524 (observed 2026-08-28T04:08:10.878034+00:00)

## What it is
A Node.js library and CLI that converts HTML documents to PDF using the PhantomJS headless browser, supporting page sizes, headers, and footers. It is no longer maintained because PhantomJS is deprecated; the README recommends migrating to headless Chrome via Puppeteer.

## Use cases
- convert html to pdf in node
- generate pdf invoices from html templates
- render business cards as pdf from html
- command line html to pdf converter
- add headers and footers to generated pdfs
- create pdf receipts from web pages

## When to choose
- maintaining a legacy codebase already using html-pdf
- you specifically need PhantomJS-based rendering for reproducibility with old output

## When to avoid
- starting a new project - use Puppeteer or Playwright instead
- you need maintained software or security updates
- you need modern CSS/JavaScript rendering support

## Facets
- artifact type: library
- maturity: abandoned
- function: pdf, templating, cli
- domain: pdf, web-development, developer-tools
- platform: cli, cross-platform
- tags: html-to-pdf, phantomjs, deprecated, pdf-generation, invoice-generation, nodejs

## Member repositories
- marcbachmann/node-html-pdf (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:10.878034+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-29T18:34:01.174126+00:00, confidence not recorded.
  - readme: https://github.com/marcbachmann/node-html-pdf (fetched 2026-08-28T04:08:10.878034+00:00, sha 2dc8d83530fd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
