Have anyone worked with PDF in the browser in ClojureScript. https://github.com/mozilla/pdf.js is supposed to work in the browser, but when I try to import it in shadow-cljs it throws the error:
The required JS dependency "os" is not available, it was required by "node_modules/@napi-rs/canvas/index.js"
Does anyone know how to make this work, or have an alternative suggestion for extracting XMP metadata from a PDF in the browser?
PDF.js requires napi-rs