WT PDF.js - Documentation

Categories: Joomla plugins, Web Assets
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 in Joomla: select a JSON profile

Both viewers use these rules:

PDF.js JSON profiles: format and application order

The root is a flat object of 6.4.299 PDFViewerApplicationOptions (AppOptions) names.

PDF.js viewer JSON options: reference

Types and values apply to the 6.4.299 viewers.

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 in Joomla: mobile reading profile

File: media/plg_system_wtpdfjs-config/mobile.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.

PDF.js in Joomla: errors and troubleshooting

JSON is awaited for up to five seconds.

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.

WebTolk Joomla Extensions

113 Extensions
12 Categories
582 Versions released
893459 Downloads