jzillmann / pdf-to-markdown

A PDF to Markdown converter
https://pdf2md.morethan.io
MIT License
1.14k stars 184 forks source link

V2: Include PDF.js web-worker in a way that works with bundling #23

Open jzillmann opened 3 years ago

jzillmann commented 3 years ago

Right now following pieces are in place:

This works in dev mode, but for a production deployment (npm run build) one has to copy node_modules/pdfjs-dist/build/pdf.worker.min.js to worker/pdf.worker.min.js.

There has to be a better way!

There is related documentation and conversation:

But i failed so far with any approach...

darkcheftar commented 2 years ago

I guess current setup fixes #28