Problems with rendering pdf.js in Web Worker

I was tinkering with pdf.js and pdf-lib. I was trying to see what open source free technologies can do. Then I thought of how efficient it would be to move the main computation of working with pdf-lib and pdf.js to a web worker. I did a small test. I created a small html file that places a select file input control on the UI and a div to hold images....

<span title='2024-01-18 22:58:31 +0100 +0100'>January 18, 2024</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;804 words&nbsp;·&nbsp;Harsh Ankur