gtm-nayan / svelte-pdfjs

https://gtm-nayan.github.io/svelte-pdfjs
MIT License
31 stars 8 forks source link

Updated pdfjs to 4+ #19

Closed nullpointerexceptionkek closed 2 months ago

nullpointerexceptionkek commented 2 months ago

This PR updates PDFJS-DIST dependency 3.x to 4.6.82. PDFjs 4 introduces some breaking changes, including the deprecation of rendertextlayer.

PDFJS 3.x is currently deprecated and has vulnerabilities.

This PR updates various imports and uses a new method to render the text layer.

nullpointerexceptionkek commented 2 months ago

Should be reverted