mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 07:37:57 +02:00
When an image has a non-zero SMaskInData it means that the image has an alpha channel. With JPX images, the colorspace isn't required (by spec) so when we don't have it, the JPX decoder will handle the conversion in RGBA format. |
||
---|---|---|
.. | ||
openjpeg.js | ||
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 Apache 2 license so openjpeg.js
is released under Apache 2 license too.