Worker doesn't work when loading the url for worker from public folder #613
Unanswered
FadilCivils
asked this question in
Q&A
Hi all,
When I add this code to load the engine
usePdfiumEngine({
worker: true,
wasmUrl: `${import.meta.env.VITE_BASE_URL || ""}/pdfium.wasm`,
});
Then I see the performance is not good and i often then bytes exceed error but then when I set the worker to false then it is worst with the speed of rendering but I don't get the issue if byte exceed like Cannot enlarge memory, requested 3516370944 bytes, but the limit is 2147483648 bytes! and also sometimes when i zoom in a lot then the PDF just becomes white I don't see anything until i zoom out
But I do
usePdfiumEngine({
});
which uses the cdn url then everything works fine but i still get this Cannot enlarge memory, requested 3516370944 bytes, but the limit is 2147483648 bytes! Any idea what is happening?
Thank you all
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment