#1149220 ITP: pdfjs-qcms -- ICC colour management for pdf.js, compiled to WebAssembly

#1149220#5
Date:
2026-09-28 14:21:39 UTC
From:
To:
* Package name    : pdfjs-qcms
  Version         : 0.0~git20260423
  Upstream Author : Mozilla Foundation
* URL             : https://github.com/mozilla/pdf.js.qcms
* License         : MIT
  Programming Lang: Rust (compiled to WebAssembly), JavaScript
  Description     : ICC colour management for pdf.js, compiled to WebAssembly

The qcms WebAssembly bindings pdf.js uses to convert images from the ICC
colour profile they embed into sRGB.  Written in Rust on top of qcms and
built with wasm-bindgen, so the module loads both from a browser and from
Node.js.

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 ICC colour management
library compiled to WebAssembly.

The build runs upstream's compile.sh (wasm-pack), with the Rust crates
taken from the Debian packages rather than from crates.io.  Upstream pins
no toolchain version, so the module is not byte-identical to the published
one; debian/README.source documents the export-section comparison used
instead.

I intend to package the three sibling modules (pdf.js.openjpeg,
pdf.js.jbig2, pdf.js.quickjs) the same way.

Thanks,
Emfox