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 image
    • node 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.