# PDF.js vendored assets

**Source**: https://github.com/mozilla/pdf.js/releases/tag/v5.6.205 (legacy prebuilt dist)
**Version**: 5.6.205
**Build**: legacy (ES5-compatible, broader WebKit support — required for older iPads in the field)
**Vendored**: 2026-04-22
**License**: Apache 2.0 (see https://github.com/mozilla/pdf.js/blob/master/LICENSE)

## Files

- `LICENSE` — Apache 2.0 license text (copy of upstream)
- `build/pdf.mjs`, `build/pdf.worker.mjs` — core library and worker
- `web/viewer.html` — viewer UI entry point
- `web/viewer.mjs`, `web/viewer.css` — viewer logic and styles
- `web/locale/` — localization files
- `web/cmaps/` — character maps for non-Latin PDFs
- `web/standard_fonts/` — fallback fonts
- `web/images/` — viewer UI icons

## Used by

- `app/assets/js/sections/pdf-viewer.js` — points iframe at `web/viewer.html`

## To update

1. Download new version: `curl -L https://github.com/mozilla/pdf.js/releases/download/v<version>/pdfjs-<version>-legacy-dist.zip -o /tmp/pdfjs.zip`
2. Unzip and replace the `build/` and `web/` subtrees as originally vendored.
3. Bump the Version field above.
4. Smoke test on real iOS Safari + Android Chrome before deploying.
