PDF.js in Joomla: select a JSON profile

WT PDF.js - Documentation

Both viewers use these rules:

Default profile, named file and none

Both viewers use these rules:

URLResult
No configLoads media/plg_system_wtpdfjs-config/default.json.
&config=catalog.jsonLoads media/plg_system_wtpdfjs-config/catalog.json.
&config=noneNo JSON request; normal PDF.js settings and Preferences.

Pass only a filename starting with an ASCII letter or digit, followed by ASCII letters/digits, dots, underscores or hyphens, ending in lowercase .json. Empty config=, ../catalog.json, full URLs, non-ASCII names and catalog.JSON are invalid. none is special; none.json is a normal file. The fixed profile directory does not depend on the PDF location.

text example

/media/plg_system_wtpdfjs/viewer/modern/web/viewer.html?file=%2Fimages%2Fdocuments%2Fcatalog.pdf
/media/plg_system_wtpdfjs/viewer/modern/web/viewer.html?file=%2Fimages%2Fdocuments%2Fcatalog.pdf&config=catalog.json
/media/plg_system_wtpdfjs/viewer/modern/web/viewer.html?file=%2Fimages%2Fdocuments%2Fcatalog.pdf&config=none

WebTolk Joomla Extensions

113 Extensions
12 Categories
582 Versions released
893721 Downloads