#1149231 ITP: pdfjs-openjpeg -- JPEG 2000 decoder for pdf.js, compiled to WebAssembly

#1149231#5
Date:
2026-09-28 15:54:26 UTC
From:
To:
* Package name    : pdfjs-openjpeg
  Version         : 0.0~git<date>
  Upstream Author : Mozilla Foundation
* URL             : https://github.com/mozilla/pdf.js.openjpeg
* License         : BSD-2-Clause
  Programming Lang: C (compiled to WebAssembly), JavaScript
  Description     : JPEG 2000 decoder for pdf.js, compiled to WebAssembly

The OpenJPEG wrapper pdf.js uses to decode JPEG 2000 images (the JPXDecode
filter) embedded in PDF files.  It is built with Emscripten, and the pure
JavaScript fallback that upstream ships is built from the same sources with
-s WASM=0.

I need it as a build-dependency of the zotero-reader package I am working
on.  It is not zotero specific: it is a general JPEG 2000 decoder compiled
to WebAssembly.

The build runs upstream's compile.sh / compile_lib.sh (emcmake + emcc on top
of uclouvain/openjpeg, pinned in the Dockerfile; the Docker step is only the
emsdk environment).  Upstream publishes only the built .wasm and pins no
toolchain version, so the module is not byte-identical to the published one;
as with pdfjs-qcms, debian/README.source will document the comparison used
instead.

I intend to package the sibling modules (pdf.js.jbig2, pdf.js.quickjs) the
same way.  pdfjs-qcms is already ITP'd as #1149220.

Thanks,
Emfox

#1149231#10
Date:
2026-09-29 18:00:15 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pdfjs-openjpeg, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1149231@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emfox Zhou <emfox@debian.org> (supplier of updated pdfjs-openjpeg package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 29 Sep 2026 10:09:43 +0800
Source: pdfjs-openjpeg
Binary: pdfjs-openjpeg
Architecture: source all
Version: 0.0~git20260423+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Emfox Zhou <emfox@debian.org>
Changed-By: Emfox Zhou <emfox@debian.org>
Description:
 pdfjs-openjpeg - JPEG 2000 decoder for pdf.js, compiled to WebAssembly
Closes: 1149231
Changes:
 pdfjs-openjpeg (0.0~git20260423+ds-1) unstable; urgency=medium
 .
   * Initial release (Closes: #1149231).
   * Do not ship the parts of OpenJPEG that the wasm build never compiles:
     the third-party copies under thirdparty/ (libpng, libtiff, lcms2, zlib,
     astyle), the documentation, tests, tools and maintenance scripts.
     debian/patches/0003 turns BUILD_CODEC off, so the CMake configuration
     no longer looks for them.
   * debian/copyright: give the remaining OpenJPEG tree its own File
     paragraphs and licence texts, taken over from the openjpeg2 package,
     instead of the single placeholder line that covered all of it.
Checksums-Sha1:
 75e482954e8ba34a1320da6a8aa20f9064871758 2098 pdfjs-openjpeg_0.0~git20260423+ds-1.dsc
 30d35b3e923bc73d90cd2906cc8b86132bb091ee 462564 pdfjs-openjpeg_0.0~git20260423+ds.orig.tar.xz
 b7fe9f5e923f76d83d09a21cfb3c9c47a1ed6dfb 7688 pdfjs-openjpeg_0.0~git20260423+ds-1.debian.tar.xz
 25ece2f0a3c058d9275d0c1dd1f76b13ad82e70b 168884 pdfjs-openjpeg_0.0~git20260423+ds-1_all.deb
 4082692319647644d9880ad03d5adc92b302f4be 9900 pdfjs-openjpeg_0.0~git20260423+ds-1_amd64.buildinfo
Checksums-Sha256:
 4f4812807a3f65f85927a1090bd1695f04199027cc83e581d3b633d476c8fd12 2098 pdfjs-openjpeg_0.0~git20260423+ds-1.dsc
 19d57399d77e7aa4dd3f9f28386caa84472c01c7c7c8288d76d3b4b525ad97af 462564 pdfjs-openjpeg_0.0~git20260423+ds.orig.tar.xz
 87c0712b049a4e72651440cc4f82c07ad03ffb064af7aedf90eb5b9625e6e19e 7688 pdfjs-openjpeg_0.0~git20260423+ds-1.debian.tar.xz
 be907a5bc27f16b51eca2d32865bac8c454ce75c7b4026e52c90a4e7b7f80bc0 168884 pdfjs-openjpeg_0.0~git20260423+ds-1_all.deb
 f203f1b9974a8c882ce401245677b14836c2c4bc9c18383d3cdd0d57abb2c55f 9900 pdfjs-openjpeg_0.0~git20260423+ds-1_amd64.buildinfo
Files:
 32c84f650f3ed1f75312db610ec30095 2098 javascript optional pdfjs-openjpeg_0.0~git20260423+ds-1.dsc
 c411d1143412d86742f0686d1ec45701 462564 javascript optional pdfjs-openjpeg_0.0~git20260423+ds.orig.tar.xz
 17df8828bccbec85a7a7fd0aeab6bde7 7688 javascript optional pdfjs-openjpeg_0.0~git20260423+ds-1.debian.tar.xz
 b28ef058a2f49959ce517baee72baa0c 168884 javascript optional pdfjs-openjpeg_0.0~git20260423+ds-1_all.deb
 6949093d2c13ab2bf36a5458009c69cd 9900 javascript optional pdfjs-openjpeg_0.0~git20260423+ds-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEGSauJtItZVqOiaNpgImbv9t7vZQFAmq7u6EACgkQgImbv9t7
vZSFHRAA5XijaeXbvl4fUAe/kZo8Nio0lMDWaRPS4U81rRcvHh0cNWXbxU+BKetl
d/mR9anUed2IBlmtwZM0LEubhJ4zqV0F/5zfay42DxF0k6UxiqFIZBCBDTATkAq3
uTMTHh5hrQmrVMmnWgXqmxuVQlfucrdq56vKtzhSEWD/FU0sRzZhaEW6wP7daOpY
bpmr0uChvvE+AUZRp3HgkD7GoiGsWmOswyKnYzwdoOPPddE/HTET77Jbb1rseWe0
YTYA3lGBN2GEqpLSSjTLKJbzzy+cYw0PjaK3np4hCm2vusKB8lShI6eYTti4Yq+C
i1mZt9V5xX576NsufcKgd+JiJXYr3Q3zWYWWMJ+S2QSu8xYNRZZm35y2dzCzFJkG
68R5kqbQi99Syb6yw+cH1Yc2zVhOF/w8hSYFCyrvcVnAN/4kJnmcD9R/K2fdMFp5
f+/9MafbjtKFl2cZAImwQR68zREIcoFSrWmMhddIPflwfDA00I+gTjQvA2O/gU9M
Ur3K/qCxeLWAGE0YWY6Ahx3ZPCoTqx35Z98YM7PmDcTh4EiObHoeYzHwM6xPR2yc
hlgsGQT6BCAlqtOXXo4ZL8PA9FclacHtU2s0DMz8riR3BoP4kBbWPS0PiBkDab56
z+DPf5PNs9cZctYMvc2p1hFGDxej/0cdcZyWMebnBXwqbdytpL4=
=4OeM
-----END PGP SIGNATURE-----