# PDF\.js

Web\-standards PDF parsing and rendering library with a reusable browser viewer\.

ID: Q656 · Revision: 704

Type: software · License: Apache\-2\.0 software; documentation CC BY\-SA 2\.5[^home] · Status: active

Website: https://mozilla.github.io/pdf.js/



PDF\.js is Mozilla's web\-standards\-based platform for parsing and rendering PDF documents\. It includes a display API and a viewer interface built on that API, allowing developers to choose between embedding document rendering and adapting an existing reading interface\. The software is available under Apache\-2\.0, with separate licensing for its documentation\.[^home][^layers]

## Capabilities and substitutions

### Browser rendering API — supported

Display layer renders PDFs and exposes document information; viewer UI is a separate layer\.[^layers]

Use case: Embedding PDF viewing in web applications · Platforms: Modern browsers, Legacy browser bundle, Node\.js with documented limits · Region: Version, build and integration requirements apply

### Cross\-origin loading — limited

Requires an appropriate server delivery arrangement such as CORS; ordinary JavaScript origin rules apply\.[^faq]

Use case: Embedding PDF viewing in web applications · Platforms: Modern browsers, Legacy browser bundle, Node\.js with documented limits · Region: Version, build and integration requirements apply

### Annotation creation — limited

Supports adding a subset of PDF annotation types, not every possible annotation operation\.[^faq]

Use case: Embedding PDF viewing in web applications · Platforms: Modern browsers, Legacy browser bundle, Node\.js with documented limits · Region: Version, build and integration requirements apply

### [Substitute for MuPDF](/mupdf) — limited

An alternative for browser PDF rendering through an application integration; not a replacement for every MuPDF command\-line or conversion feature\.[^home][^layers][^mupdf]

Use case: Embedding PDF viewing in web applications · Platforms: Modern browsers, Legacy browser bundle, Node\.js with documented limits · Region: Version, build and integration requirements apply

## References

[^home]: [PDF\.js homepage](<https://mozilla.github.io/pdf.js/>) — Parsing/rendering identity and software/documentation licenses (vendor; retrieved 2026-10-07T12:34:12.405Z)

[^layers]: [PDF\.js getting started](<https://mozilla.github.io/pdf.js/getting_started/>) — Core, display and viewer layers; bundled worker and server requirement (vendor; retrieved 2026-10-07T12:34:12.405Z)

[^examples]: [PDF\.js examples](<https://mozilla.github.io/pdf.js/examples/>) — Asynchronous document/page rendering, viewports and canvas serialization (vendor; retrieved 2026-10-07T12:34:12.405Z)

[^faq]: [PDF\.js FAQ](<https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions>) — Origin policy, modern/legacy support, worker version matching and annotation subset (vendor; retrieved 2026-10-07T12:34:12.405Z)

[^mupdf]: [MuPDF framework overview](<https://mupdf.readthedocs.io/en/latest/guide/what-is-mupdf.html>) — JavaScript/WebAssembly interface and separate commercial WebViewer (vendor; retrieved 2026-10-07T12:34:12.405Z)

Source revision: https://substitutefor.net/entities/Q656?revision=704
