WT PDF.js - Documentation
WT PDF.js for Joomla: asset reference
All assets, which are JavaScript files registered with Joomla, have type script and type="module" .
PDF.js in Joomla: choose and load a library
This works in a frontend module layout, component view or template override.
PDF.js latest in Joomla: CDN integration
wt-pdf-js-latest uses the npm @latest tag, which may change without a plugin update.
PDF.js in Joomla: render a PDF on canvas
Register your own module with a dependency on the chosen asset.
PDF.js in the Joomla administrator
Automatic registration applies only to the site application.
PDF.js inline module through Joomla WebAssetManager
Use addInlineScript() with a dependency and type="module" .
PDF.js viewer in Joomla: links and iframes
Each viewer includes its complete UI, local worker and resources.
PDF.js viewer URLs: file, page and zoom
The query is ?file=...&config=catalog.json ; the fragment is #page=2&zoom=150 .
PDF.js JSON profiles in Joomla: file locations
Profiles live in media/plg_system_wtpdfjs-config/ , beside the supplied media/plg_system_wtpdfjs/ directory.
PDF.js JSON profiles: format and application order
The root is a flat object of 6.4.299 PDFViewerApplicationOptions (AppOptions) names.
PDF.js in Joomla: page-width default profile
File: media/plg_system_wtpdfjs-config/default.json .
PDF.js: catalogue JSON profile with spreads
File: media/plg_system_wtpdfjs-config/catalog.json .
PDF.js: dark theme and viewer language
File: media/plg_system_wtpdfjs-config/reader-dark.json .
Large PDFs in Joomla: PDF.js partial loading
File: media/plg_system_wtpdfjs-config/large-document.json .
PDF.js: a profile with PDF scripting disabled
File: media/plg_system_wtpdfjs-config/read-only.json .
PDF.js in Joomla: multiple JSON profiles
A catalogue can use config=catalog.json, a mobile layout config=mobile.json, and another section its own file.
Updating WT PDF.js in Joomla and keeping settings
Updates replace media/plg_system_wtpdfjs/ files, including the library, viewers and loader.
Joomla and PDF.js: APIs and developer documentation
This documentation matches WT PDF.js 6.4.299 source.