Vite + PDF.js - JpxError: OpenJPEG failed to initialize #20585
Replies: 2 comments
|
I don't know anything about Lines 152 to 156 in 6a4a3b0 I know our docs aren't crazy, but grep (or ripgrep) is a good tool. |
|
GlobalWorkerOptions.workerSrc = const wasmUrl = let doc; |
Uh oh!
There was an error while loading. Please reload this page.
Hi, been working with pdf.js a little in vite, all seemed to work well with minimal config e.g. following was required to setup the worker:
When launching some pdf documents that have older jpegs in I get the following error:
I have hunted for
wasmUrlin the docs but can't see where I should configure this option? My understanding its the wasm url ofpdfjs-dist/image_decoders/pdf.image_decoders.mjsAny help appreciated
All reactions