you can either use a pre-built pdfs dist file as a seperate script tag and use the global it provides
or you can try configuring shadow-cljs to just ignore certain dependencies. as long as the actual code does not attempt to use them that can work
:js-options {:resolve {"os" false}} for example in the build config