mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
The decoder is compiled in WASM: https://github.com/mozilla/pdf.js.openjpeg Fixes #17289, #17061, #16485, #13051, #6365, #4648, #12213.
12 lines
759 B
Markdown
12 lines
759 B
Markdown
## 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](https://www.docker.com/) setup and then:
|
|
* `node build.js -C` to build the Docker image
|
|
* `node build.js -co /pdf.js/external/openjpeg/` to compile the decoder
|
|
|
|
## Licensing
|
|
|
|
[OpenJPEG](https://www.openjpeg.org/) is under [BSD 2-clause "Simplified" License](https://github.com/uclouvain/openjpeg/blob/master/LICENSE)
|
|
and [pdf.js.openjpeg](https://github.com/mozilla/pdf.js.openjpeg/) is released under [Apache 2](https://github.com/mozilla/pdf.js.openjpeg/blob/main/LICENSE) license so `openjpeg.js` is released under [Apache 2](https://github.com/mozilla/pdf.js.openjpeg/blob/main/LICENSE) license too.
|