# Paged\.js

JavaScript pagination library for previewing and producing print\-oriented documents with browser technology\.

ID: Q305 · Revision: 291

Type: software · License: MIT[^picture] · Status: active

Website: https://pagedjs.org/



Paged\.js is a JavaScript library that paginates HTML content for print\-oriented output\. It translates supported paged\-media CSS into structures and styles a browser can render, providing an on\-screen page preview that can be saved as PDF\. It is an MIT\-licensed library with an associated command\-line renderer, rather than a standalone desktop publishing editor\.[^picture][^repo][^cli]

## Capabilities and substitutions

### Browser pagination preview — supported

Paginates HTML using a browser and supported paged\-media transformations\.[^picture]

Use case: Browser\-based HTML/CSS pagination and PDF production · Platforms: Web browsers, Node\.js CLI with Puppeteer · Region: Version, build and integration requirements apply

### Pagination timing control — supported

Automatic start can be delayed by a promise or disabled for explicit preview initiation\.[^repo]

Use case: Browser\-based HTML/CSS pagination and PDF production · Platforms: Web browsers, Node\.js CLI with Puppeteer · Region: Version, build and integration requirements apply

### Automated PDF output — limited

Associated CLI uses Puppeteer; browser runtime and resource policy are deployment requirements\.[^cli]

Use case: Browser\-based HTML/CSS pagination and PDF production · Platforms: Web browsers, Node\.js CLI with Puppeteer · Region: Version, build and integration requirements apply

### [Substitute for WeasyPrint](/weasyprint) — limited

Can cover suitable HTML/CSS\-to\-PDF pagination through browser technology; runtime and supported layout behavior differ\.[^picture][^cli][^weasy]

Use case: Browser\-based HTML/CSS pagination and PDF production · Platforms: Web browsers, Node\.js CLI with Puppeteer · Region: Version, build and integration requirements apply

## References

[^picture]: [Paged\.js overview](<https://pagedjs.org/en/documentation/1-the-big-picture/>) — Browser pagination, preview, polyfill and MIT license (vendor; retrieved 2026-10-07T12:42:28.193Z)

[^repo]: [Paged\.js repository](<https://github.com/pagedjs/pagedjs>) — Previewer, automatic start control and asynchronous handlers (vendor; retrieved 2026-10-07T12:42:28.193Z)

[^generated]: [Paged\.js generated content](<https://pagedjs.org/en/documentation/6-generated-content/>) — Counters, generated text and paged navigation content (vendor; retrieved 2026-10-07T12:42:28.193Z)

[^cli]: [Paged\.js command\-line renderer](<https://github.com/pagedjs/pagedjs-cli>) — Puppeteer PDF output, timeouts and resource access options (vendor; retrieved 2026-10-07T12:42:28.193Z)

[^weasy]: [WeasyPrint engine overview](<https://doc.courtbouillon.org/weasyprint/stable/>) — Separate Python HTML/CSS pagination engine (vendor; retrieved 2026-10-07T12:42:28.193Z)

Source revision: https://substitutefor.net/entities/Q305?revision=291
