PDF.js asset names and paths
All assets, which are JavaScript files registered with Joomla, have type script and type="module". Except for the CDN URL, paths are relative to media/plg_system_wtpdfjs/. Use exact registry names, including legacy and sandox.
| Name | Path | Purpose |
|---|---|---|
wt-pdf-js | js/pdf.init.mjs | Local library for newer browsers; sets the worker. |
wt-pdf-js-legacy | js/legacy/pdf.init.mjs | Local library for older browsers; sets the worker. |
wt-pdf-js-latest | https://cdn.jsdelivr.net/npm/pdfjs-dist@latest/build/pdf.mjs | CDN latest for newer browsers; wt-pdf-js-latest-init is activated automatically. |
wt-pdf-js-latest-init | js/pdf.latest.init.mjs | CDN initializer: pins the worker to the exact loaded library version. |
wt-pdf-js-worker | js/pdf.worker.mjs | Worker for newer browsers; usually not activated separately. |
wt-pdf-js-legacy-worker | js/legacy/pdf.worker.mjs | Worker for older browsers; usually not activated separately. |
wt-pdf-js-sandox | js/pdf.sandbox.mjs | PDF scripting sandbox for newer browsers. The historical sandox spelling is retained. |
wt-pdf-js-legacy-sandbox | js/legacy/pdf.sandbox.mjs | PDF scripting sandbox for older browsers. |