# pagedjs/pagedjs

Display paginated content in the browser and generate print books using web technology

Repository: https://github.com/pagedjs/pagedjs
Canonical: https://ross.abutalabs.com/products/pagedjs
Homepage: https://pagedjs.org
Language: HTML
License: MIT
License Family: permissive
Topics: paged-media, polyfill, typesetting, html, printing, pdf
Last push: 2026-04-23T06:44:59+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 78, release rhythm 35, longevity 100
- inputs: {"age_days": 2812, "days_push": 132, "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 1485, forks 156 (observed 2026-08-28T04:04:51.417579+00:00)

## What it is
Paged.js is an open-source JavaScript library that paginates HTML content in the browser, polyfilling the W3C CSS Paged Media and Generated Content modules. It enables designing print-ready books and PDFs using standard web technologies, with a Previewer API, a polyfill script, and hooks for custom handlers.

## Use cases
- generate print-ready pdf books from html and css
- paginate long-form content in the browser
- polyfill @page css rules not supported by browsers
- add running headers, footnotes, and margin boxes to printed documents
- render epub content as paginated pages
- typeset a book for print using web technology

## When to choose
- you need standards-compliant CSS Paged Media features browsers lack
- you want to produce print books or PDFs from HTML/CSS in the browser
- you need custom page layout handlers via hooks and modules

## When to avoid
- you only need simple one-off HTML-to-PDF conversion without pagination control
- you need server-side rendering outside a browser or headless environment
- your content is purely for screen scrolling and never printed

## Facets
- artifact type: library
- maturity: active
- function: templating, pdf, parser
- domain: web-development, frontend, pdf, documentation
- platform: browser
- tags: paged-media, css-polyfill, typesetting, print-books, pagination, html-to-pdf, nodejs, web-server

## Member repositories
- pagedjs/pagedjs (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:51.417579+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:33:57.006984+00:00, confidence not recorded.
  - readme: https://github.com/pagedjs/pagedjs (fetched 2026-08-28T04:04:51.417579+00:00, sha 2b7572d7d7e1)
  - homepage: https://pagedjs.org (fetched 2026-08-29T11:40:14.842814+00:00, sha db6cb045fb12)
  - site_page: https://pagedjs.org/en/about (fetched 2026-08-29T11:40:14.845871+00:00, sha 37dfcf5ea8d3)
  - site_page: https://pagedjs.org/en/documentation (fetched 2026-08-29T11:40:14.850313+00:00, sha d6dd85f89ce6)
  - site_page: https://pagedjs.org/en/faq (fetched 2026-08-29T11:40:14.848519+00:00, sha 73bee5db0282)
- Data as of 2026-08-30T08:39:29.467469+00:00.
