The decoder is compiled in WASM: https://github.com/mozilla/pdf.js.openjpeg Fixes #17289, #17061, #16485, #13051, #6365, #4648, #12213.
Build
In order to generate the file openjpeg.js:
- git clone https://github.com/mozilla/pdf.js.openjpeg/
- the build requires to have a Docker setup and then:
node build.js -Cto build the Docker imagenode build.js -co /pdf.js/external/openjpeg/to compile the decoder
Licensing
OpenJPEG is under BSD 2-clause "Simplified" License
and pdf.js.openjpeg is released under Apache 2 license so openjpeg.js is released under Apache 2 license too.