mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
The decoder is a dependency of the jbig2 one and is already included in pdf.js, so we just need to wire it up. It improves the performance of documents using ccittfax images.
Build
In order to generate the file jbig2.js:
- git clone https://github.com/mozilla/pdf.js.jbig2/
- the build requires to have a Docker setup and then:
node build.js -Cto build the Docker imagenode build.js -co /pdf.js/external/jbig2/to compile the decoder
Licensing
PDFium is under Apache-2.0
and pdf.js.jbig2 is released under Apache-2.0 license so jbig2.js is released under Apache-2.0 license too.