You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running pdf2md from Node I get this error: Error: Setting up fake worker failed: \"No \"GlobalWorkerOptions.workerSrc\" specified.\"."
OSX Ventura (Apple silicon)
Node 18.15.0
Adding this line fixes the problem for me: pdfjs.GlobalWorkerOptions.workerSrc = pdfjs-dist/legacy/build/pdf.worker;
in lib/util/pdf.js fixes the problem for me.
I'm not familiar with pdf.js so I have no idea if this is the correct approach/solution.
The text was updated successfully, but these errors were encountered:
When running pdf2md from Node I get this error:
Error: Setting up fake worker failed: \"No \"GlobalWorkerOptions.workerSrc\" specified.\"."
Adding this line fixes the problem for me:
pdfjs.GlobalWorkerOptions.workerSrc =
pdfjs-dist/legacy/build/pdf.worker;
in
lib/util/pdf.js
fixes the problem for me.I'm not familiar with pdf.js so I have no idea if this is the correct approach/solution.
The text was updated successfully, but these errors were encountered: