Default profile, named file and none
Both viewers use these rules:
| URL | Result |
|---|---|
No config | Loads media/plg_system_wtpdfjs-config/default.json. |
&config=catalog.json | Loads media/plg_system_wtpdfjs-config/catalog.json. |
&config=none | No 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