Thanks. I'll add the answer to my own question too: pdfLib is the dependency at work to make it work in the browser runtime.