WT PDF.js for Joomla: asset reference

WT PDF.js - Documentation

All assets, which are JavaScript files registered with Joomla, have type script and type="module" .

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.

NamePathPurpose
wt-pdf-jsjs/pdf.init.mjsLocal library for newer browsers; sets the worker.
wt-pdf-js-legacyjs/legacy/pdf.init.mjsLocal library for older browsers; sets the worker.
wt-pdf-js-latesthttps://cdn.jsdelivr.net/npm/pdfjs-dist@latest/build/pdf.mjsCDN latest for newer browsers; wt-pdf-js-latest-init is activated automatically.
wt-pdf-js-latest-initjs/pdf.latest.init.mjsCDN initializer: pins the worker to the exact loaded library version.
wt-pdf-js-workerjs/pdf.worker.mjsWorker for newer browsers; usually not activated separately.
wt-pdf-js-legacy-workerjs/legacy/pdf.worker.mjsWorker for older browsers; usually not activated separately.
wt-pdf-js-sandoxjs/pdf.sandbox.mjsPDF scripting sandbox for newer browsers. The historical sandox spelling is retained.
wt-pdf-js-legacy-sandboxjs/legacy/pdf.sandbox.mjsPDF scripting sandbox for older browsers.

WebTolk Joomla Extensions

113 Extensions
12 Categories
582 Versions released
893721 Downloads