# dvcoolarun/web2pdf

🔄 CLI to convert Webpages to PDFs 🚀

Repository: https://github.com/dvcoolarun/web2pdf
Canonical: https://ross.abutalabs.com/products/web2pdf
Homepage: https://dvcoolarun.com
Language: Python
License: MIT
License Family: permissive
Topics: automation, cli, printing, python, pdf-generation
Last push: 2026-07-09T10:12:33+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 91, release rhythm 35, longevity 67
- inputs: {"age_days": 944, "days_push": 55, "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 1281, forks 58 (observed 2026-08-28T04:04:13.825668+00:00)

## What it is
A Python command-line tool that converts webpages into formatted PDFs using WeasyPrint. It supports batch conversion, recursive same-domain crawling, custom CSS styling, page numbers, and automatic table of contents generation.

## Use cases
- convert webpages to pdf from the command line
- batch convert multiple urls to pdfs
- crawl an entire website and save pages as pdf
- archive web articles as nicely formatted pdfs
- generate pdfs with table of contents and page numbers
- apply custom css styling when printing webpages to pdf

## When to choose
- you need a scriptable CLI for webpage-to-PDF conversion
- you want batch conversion or recursive site crawling
- you need customizable PDF styling with CSS

## When to avoid
- you need a managed document generation API with scaling
- you need pixel-perfect rendering of JavaScript-heavy single-page apps
- you want a GUI-based PDF converter

## Facets
- artifact type: cli-tool
- maturity: active
- function: pdf, web-scraping, cli, templating
- domain: pdf, developer-tools
- platform: python, cli, windows, cross-platform
- tags: pdf-generation, weasyprint, batch-conversion, webpage-to-pdf, crawling, custom-css, automation, command-line, macos, linux

## Member repositories
- dvcoolarun/web2pdf (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.825668+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:58:17.694758+00:00, confidence not recorded.
  - readme: https://github.com/dvcoolarun/web2pdf (fetched 2026-08-28T04:04:13.825668+00:00, sha e1ed33ee801c)
  - homepage: https://dvcoolarun.com (fetched 2026-08-29T12:13:05.002636+00:00, sha 7d9de4ceabd9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
