# alvarcarto/url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.

Repository: https://github.com/alvarcarto/url-to-pdf-api
Canonical: https://ross.abutalabs.com/products/url-to-pdf-api
Language: HTML
License: MIT
License Family: permissive
Topics: pdf, chrome, receipt, heroku, puppeteer, invoice, heroku-button, html, headless, headless-chrome
Last push: 2024-01-18T12:49:11+00:00

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

## Adoption (not part of the score)
Stars 7105, forks 779 (observed 2026-08-28T04:09:55.933152+00:00)

## What it is
A self-hosted microservice that converts URLs or raw HTML into PDF or PNG/JPEG images using Headless Chrome via Puppeteer. It exposes a simple HTTP API with sensible defaults, SPA support, and optional API key authentication.

## Use cases
- generate pdf invoices from html templates
- render web page to pdf via api
- self-hosted html to pdf service
- take screenshot of url as png
- generate receipts automatically from html
- convert single page app to pdf

## When to choose
- you need programmatic HTML-to-PDF rendering that matches desktop Chrome output
- you want a self-hosted or Heroku-deployable rendering microservice
- you need to render SPAs or lazy-loaded content to PDF/images

## When to avoid
- you need to expose the API publicly without strict access controls - it allows arbitrary JavaScript execution in Chrome on the server
- you need a lightweight PDF generator without a headless Chrome dependency
- you need actively developed features - the project is in maintenance mode

## Facets
- artifact type: service
- maturity: maintenance
- function: pdf, http-server, api-framework, web-scraping
- domain: pdf, web-development, self-hosted
- platform: self-hosted, cli
- tags: puppeteer, headless-chrome, pdf-generation, html-to-pdf, microservice, invoice-rendering, screenshot, automation, nodejs, docker, web-server

## Member repositories
- alvarcarto/url-to-pdf-api (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:55.933152+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-29T17:40:08.293473+00:00, confidence not recorded.
  - readme: https://github.com/alvarcarto/url-to-pdf-api (fetched 2026-08-28T04:09:55.933152+00:00, sha 5a0edd39c300)
- Data as of 2026-08-30T08:39:29.467469+00:00.
