mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 01:28:06 +02:00
In order to fix bug 1935076, we'll have to add a pure js fallback in case wasm is disabled or simd isn't supported. Unfortunately, this fallback will take some space. So, the main goal of this patch is to reduce the overall size (by ~93k). As a side effect, it should make easier to use an other wasm file (which must export _jp2_decode, _malloc and _free). |
||
---|---|---|
.. | ||
openjpeg.js | ||
openjpeg.wasm | ||
README.md |
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 -C
to 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 BSD 2-clause license so openjpeg.js
is released under BSD 2-clause license too.