fix: provide pdfjs WASM files for JPEG 2000 decoding in booklets

PDF booklets use JPEG 2000 images which require OpenJPEG WASM.
Copy pdfjs-dist WASM files to static/pdfjs/ so they are served
at a known URL, and set wasmUrl parameter on getDocument().
This commit is contained in:
vicrodh committed 2026-02-28 07:48:03 -06:00
1 parent 883f3546c5
commit 4bafaac1cd
5 files changed
+19

No files matched your search

+2
View File
@@ -54,6 +54,8 @@
data,
disableRange: true,
disableAutoFetch: true,
useWorkerFetch: false,
wasmUrl: '/pdfjs/',
});
pdfDoc = await loadingTask.promise;